Commit 952c0cac authored by Roger Luethi's avatar Roger Luethi Committed by Greg Kroah-Hartman

[PATCH] USB visor: Don't count outstanding URBs twice

Incrementing the outstanding_urbs counter twice for the same URB can't
be good. No wonder Simon didn't get far syncing his Palm.
Signed-off-by: default avatarRoger Luethi <rl@hellgate.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 0a57a616
...@@ -497,7 +497,6 @@ static int visor_write (struct usb_serial_port *port, const unsigned char *buf, ...@@ -497,7 +497,6 @@ static int visor_write (struct usb_serial_port *port, const unsigned char *buf,
dev_dbg(&port->dev, "write limit hit\n"); dev_dbg(&port->dev, "write limit hit\n");
return 0; return 0;
} }
++priv->outstanding_urbs;
spin_unlock_irqrestore(&priv->lock, flags); spin_unlock_irqrestore(&priv->lock, flags);
buffer = kmalloc (count, GFP_ATOMIC); buffer = kmalloc (count, GFP_ATOMIC);
......
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