ChangeSet 1.994, 2003/02/04 11:56:06+11:00, [EMAIL PROTECTED]
[PATCH] USB speedtouch: earlier rejection of outgoing speedtouch packets
speedtouch: reject outgoing packets earlier when the firmware is not loaded.
diff -Nru a/drivers/usb/misc/speedtouch.c b/drivers/usb/misc/speedtouch.c
--- a/drivers/usb/misc/speedtouch.c Tue Feb 4 15:16:03 2003
+++ b/drivers/usb/misc/speedtouch.c Tue Feb 4 15:16:03 2003
@@ -477,6 +477,9 @@
return -EINVAL;
}
+ if (!instance->firmware_loaded)
+ return -EAGAIN;
+
switch (vcc->qos.aal) {
case ATM_AAL5:
new = atmsar_encode_aal5 (dev_data->atmsar_vcc, skb);
@@ -674,9 +677,6 @@
unsigned long flags;
PDEBUG ("udsl_usb_send_data entered, sending packet %p with length %d\n", skb,
skb->len);
-
- if (!instance->firmware_loaded)
- return -EAGAIN;
PACKETDEBUG (skb->data, skb->len);
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel