[PATCH] pl2303 - unplug device.
authorFlavio Leitner <fbl@conectiva.com.br>
Tue, 19 Apr 2005 00:39:31 +0000 (17:39 -0700)
committerGreg K-H <gregkh@suse.de>
Tue, 19 Apr 2005 00:39:31 +0000 (17:39 -0700)
commit6fdd8e8e33730a2abc886113bd0b6c4343f63cc9
tree83b425282fb306a2b96520431867430233955385
parent8835f6657316162a8937d3f26ccd8f5886ba3845
[PATCH] pl2303 - unplug device.

It's possible to unplug usb device and do tiocmset() and tiocmget() without
valid interface in pl2303 module.

The patch below check this and return -ENODEV if interface was removed.

From: Flavio Leitner <fbl@conectiva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
diff -purN linux-05-04-11/drivers/usb/serial/pl2303.c linux-05-04-11.usb/drivers/usb/serial/pl2303.c
drivers/usb/serial/pl2303.c