Arnd Bergmann 64ba3dc314 tty: never hold BTM while getting tty_mutex
tty_mutex is never taken with the BTM held, except for
two corner cases that are worked around here.
We give up the BTM before calling tty_release() in the
error path of tty_open().
Similarly, we reorder the locking in ptmx_open()
to get tty_mutex before the BTM.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-10 13:47:43 -07:00
..
2009-09-24 07:21:03 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:40 -07:00
2010-05-17 03:06:12 +02:00
2010-08-10 13:47:40 -07:00
2010-06-04 15:21:44 -07:00
2009-12-10 22:55:36 +01:00
2010-08-10 13:47:38 -07:00
2010-08-10 13:47:43 -07:00
2010-08-10 13:47:43 -07:00
2010-08-10 13:47:39 -07:00
2010-05-27 09:12:50 -07:00
2010-05-27 09:12:50 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:43 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:41 -07:00
2009-10-14 17:36:53 +02:00
2010-01-04 12:31:21 -08:00