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:11:57 +0000 (20:11 -0700)
commit37e792dfe6ed8c002874bdd470a325dd55f12d6b
tree32ef911bffe385a0d6b3982c237874777bec6c82
parent04d561b78d0ef52d8035778290e767a686dd8888
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