Alan Cox d3ca8b64b9 pty: Fix lock inversion
The ptmx_open path takes the tty and devpts locks in the wrong order
because tty_init_dev locks and returns a locked tty.  As far as I can
tell this is actually safe anyway because the tty being returned is new
so nobody can get a reference to lock it at this point.

However we don't even need the devpts lock at this point, it's only held
as a byproduct of the way the locks were pushe down.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-29 10:42:13 -07:00
..
2012-05-26 12:42:29 -07:00
2012-05-04 16:58:47 -07:00
2012-03-28 18:30:03 +01:00
2012-05-04 16:58:47 -07:00
2012-05-29 10:42:13 -07:00
2012-05-04 16:58:47 -07:00
2012-05-04 16:58:47 -07:00
2012-05-04 16:58:47 -07:00
2012-05-04 16:58:47 -07:00
2012-05-04 16:58:47 -07:00
2012-05-04 16:58:47 -07:00