usbserial: fix inconsistent lock state
authorBorislav Petkov <bbpetkov@yahoo.de>
Sun, 28 Oct 2007 12:24:16 +0000 (13:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 28 Nov 2007 21:58:34 +0000 (13:58 -0800)
commitbfaeafcfc2242277e31cc1cfae687afaac0cd9ec
tree15b6a182df4e0d2d15a26a9c10124b7ec18e82a3
parented206ec9ab398e1c3756ff0eb9507db1d009e65f
usbserial: fix inconsistent lock state

In commit acd2a847e7fee7df11817f67dba75a2802793e5d usb_serial_generic_write()
disables interrupts when taking &port->lock which is also taken in
usb_serial_generic_read_bulk_callback() resulting in an inconsistent lock state
due to the latter not disabling interrupts on the local cpu. Fix that by
disabling interrupts in the latter call site also.

Signed-off-by: Borislav Petkov <bbpetkov@yahoo.de>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/generic.c