The attached patch for the 3M Touch Systems Capacitive controller. (again)
Quick list of changes:
* decrease mtouch->open counter in the event of a urb submission failure
The changes are due to comments Oliver Neukum's comments on the touchkit.c driver. Good catch! Sorry I missed it.
http://marc.theaimsgroup.com/?l=linux-usb-devel&m=108343028201159&w=2
Greg: Please apply when appropriate.
Any questions or concerns, you know what to do...
--
Regards,
Todd E. Johnson
diff -Nru a/drivers/usb/input/mtouchusb.c b/drivers/usb/input/mtouchusb.c
--- a/drivers/usb/input/mtouchusb.c 2004-04-25 15:16:01.000000000 -0400
+++ b/drivers/usb/input/mtouchusb.c 2004-05-02 12:37:18.000000000 -0400
@@ -142,8 +142,10 @@
mtouch->irq->dev = mtouch->udev;
- if (usb_submit_urb (mtouch->irq, GFP_ATOMIC))
+ if (usb_submit_urb (mtouch->irq, GFP_ATOMIC)) {
+ mtouch->open--;
return -EIO;
+ }
return 0;
}
