]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] USB: gadget-serial: fix a deadlock when closing the serial device
authorFranck Bui-Huu <vagabon.xyz@gmail.com>
Wed, 14 Jun 2006 08:29:21 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Jun 2006 22:04:17 +0000 (15:04 -0700)
commit752f3851d9140ca90fa420cae4890833297f2e55
tree3a8de95902d0f8699d0c2dd1759a1841960d1720
parent3e77abbab29bc77c86ef3cb389f9bbbd6a6e4142
[PATCH] USB: gadget-serial: fix a deadlock when closing the serial device

When closing the device, the driver acquires/release twice the
port lock before/after waiting for the data to be completely
sent. Therefore it will dead lock.

This patch fixes it and also uses the generic scheduler services
for waiting for an event.

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/serial.c