speedtouch: reject outgoing packets earlier when the firmware is not loaded.
speedtouch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -Nru a/drivers/usb/misc/speedtouch.c b/drivers/usb/misc/speedtouch.c
--- a/drivers/usb/misc/speedtouch.c Fri Jan 31 15:57:23 2003
+++ b/drivers/usb/misc/speedtouch.c Fri Jan 31 15:57:23 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