]> err.no Git - linux-2.6/commit
USB: usbserial - fix potential deadlock between write() and IRQ
authorJiri Kosina <jkosina@suse.cz>
Fri, 19 Oct 2007 22:05:19 +0000 (00:05 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 25 Oct 2007 19:18:45 +0000 (12:18 -0700)
commitacd2a847e7fee7df11817f67dba75a2802793e5d
tree7eba6fe6c15f5f11ffdec779c9979f1ec6b4c6b9
parent8a28dea3accda319d51a1bf4d3e280771d946f78
USB: usbserial - fix potential deadlock between write() and IRQ

USB: usbserial - fix potential deadlock between write() and IRQ

usb_serial_generic_write() doesn't disable interrupts when taking port->lock,
and could therefore deadlock with usb_serial_generic_read_bulk_callback()
being called from interrupt, taking the same lock. Fix it.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Larry Finger <larry.finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/generic.c