OSDN Git Service

USB: sierra: fix AA deadlock in open error path
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:22:50 +0000 (19:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2014 03:09:43 +0000 (20:09 -0700)
commitfba1ebed450d9e1a97fb4cf7c711540ffd2a13bf
tree7123af47ba5665dc94b860e5d7008c13a68e553e
parentead9a10ecb07019c15d9967bd094be93822ff7dd
USB: sierra: fix AA deadlock in open error path

commit 353fe198602e8b4d1c7bdcceb8e60955087201b1 upstream.

Fix AA deadlock in open error path that would call close() and try to
grab the already held disc_mutex.

Fixes: b9a44bc19f48 ("sierra: driver urb handling improvements")

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/sierra.c