]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit170878b503b37e6406ec468211cf6b2fafdb993e
tree15b6a182df4e0d2d15a26a9c10124b7ec18e82a3
parent620f0b49d44ebbaf8688088c6a267c57511fc2c1
usbserial: fix inconsistent lock state

In commit c470ef8630b09c2772e7616abed48ee056b46a94 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