diff options
author | Alan Cox <alan@linux.intel.com> | 2012-05-29 14:45:01 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-29 19:42:13 +0200 |
commit | d3ca8b64b97ef4dc54d7bb0b88bbc01a1fca8cb9 (patch) | |
tree | 6205c4d17144485ff6ec3783463b0ed6e84bf831 /ipc | |
parent | Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd (diff) | |
download | linux-d3ca8b64b97ef4dc54d7bb0b88bbc01a1fca8cb9.tar.xz linux-d3ca8b64b97ef4dc54d7bb0b88bbc01a1fca8cb9.zip |
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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions