]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Fix unbalanced BKL handling in error path
authorAlan Cox <alan@linux.intel.com>
Tue, 4 May 2010 19:42:36 +0000 (20:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 May 2010 19:10:56 +0000 (12:10 -0700)
commit8cf52fe864e6d8df622f7db7e05032840b058360
tree1475c6c8215e831904e78a08d1947ffb5a1516ce
parente9815e32c78a9195d503c62a83964a651c81590b
tty: Fix unbalanced BKL handling in error path

Arnd noted:

After the "retry_open:" label, we first get the tty_mutex
and then the BKL. However a the end of tty_open, we jump
back to retry_open with the BKL still held. If we run into
this case, the tty_open function will be left with the BKL
still held.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_io.c