]> git.baikalelectronics.ru Git - kernel.git/commit
tty: double unlock on error in ptmx_open()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Jul 2012 06:40:40 +0000 (09:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jul 2012 21:27:08 +0000 (14:27 -0700)
commit0bb280a8f37c73050c860cc52751130f8cb694a9
treec2aa38c82c6b067e7ca9ae7d40abbc81f51ce124
parent05e8c3f28b4443285cd62f23acc353bc6cbbd6a4
tty: double unlock on error in ptmx_open()

The problem here is that we called mutex_unlock(&devpts_mutex) on the
error path when we weren't holding the lock.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c