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)
commit79d753209245de3d6f02480535a8f5cf21ad02f7
treec2aa38c82c6b067e7ca9ae7d40abbc81f51ce124
parent157a4b311c45c9aba75a990464d9680867dc8805
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