Martin Diehl pointed out that the network layer treats
a tx drop notification in special ways, so "usbnet"
shouldn't be using them.  This fixes that problem,
which could potentially explain some infrequent oopsing
seen in the network layer.  (With memory so tight that
an URB can't be gotten.)

Please merge.

- Dave
--- 1.57/drivers/usb/net/usbnet.c       Wed Jun 25 11:30:59 2003
+++ edited/drivers/usb/net/usbnet.c     Mon Jul  7 15:53:04 2003
@@ -2391,7 +2391,7 @@
        if (retval) {
                devdbg (dev, "drop, code %d", retval);
 drop:
-               retval = NET_XMIT_DROP;
+               retval = NET_XMIT_SUCCESS;
                dev->stats.tx_dropped++;
                if (skb)
                        dev_kfree_skb_any (skb);

Reply via email to