Commit 43eab861 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix empty write issue in pl2303 driver.

Patch originally from Christian Groessler <cpg@aladdin.de> but cleaned up
by me.
parent 1c5233b2
......@@ -213,6 +213,9 @@ static int pl2303_write (struct usb_serial_port *port, int from_user, const uns
dbg("%s - port %d, %d bytes", __FUNCTION__, port->number, count);
if (!count)
return count;
if (port->write_urb->status == -EINPROGRESS) {
dbg("%s - already writing", __FUNCTION__);
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment