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, 27 May 2014 22:04:02 +0000 (15:04 -0700)
commit353fe198602e8b4d1c7bdcceb8e60955087201b1
tree9b5ac3edc80cd22332cf85c0b8c28b911246bc9b
parent549e83500b801dbd274bceec04afe02a0e989fe2
USB: sierra: fix AA deadlock in open error path

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")
Cc: <stable@vger.kernel.org> # v2.6.31
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/sierra.c