From: Peter Hurley Date: Tue, 30 Dec 2014 15:39:25 +0000 (-0500) Subject: tty: Prevent hw state corruption in exclusive mode reopen X-Git-Tag: fixes-v4.0-rc1~284^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f2c00f1d8e344965cf8df8572ed5f682956995;p=pandora-kernel.git tty: Prevent hw state corruption in exclusive mode reopen Exclusive mode ttys (TTY_EXCLUSIVE) do not allow further reopens; fail the condition before associating the file pointer and calling the driver open() method. Prevents DTR programming when the tty is already in exclusive mode. Reported-by: Shreyas Bethur Signed-off-by: Peter Hurley Acked-by: Shreyas Bethur Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed