ethernet: solve spin_lock_irqsave problem
authorhwg <hwg@rock-chips.com>
Mon, 21 May 2012 12:20:04 +0000 (20:20 +0800)
committerhwg <hwg@rock-chips.com>
Mon, 21 May 2012 12:20:04 +0000 (20:20 +0800)
drivers/net/usb/axusbnet.c
drivers/net/usb/usbnet.c

index ac80d39bcc6ad844a92ddc154952babe4e008ba1..142480724784ef4dec24046844e37fa5de9ab46b 100755 (executable)
@@ -1264,6 +1264,8 @@ axusbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
        net->watchdog_timeo = TX_TIMEOUT_JIFFIES;
        net->ethtool_ops = &axusbnet_ethtool_ops;
 
+       info->flags |= FLAG_AVOID_UNLINK_URBS;
+
        // allow device-specific bind/init procedures
        // NOTE net->name still not usable ...
        status = info->bind (dev, udev);
index c0de2bd9cea49c82a2cc435ae66429876f5b16bc..253def9b5feb9d3c5c4ef1abcfdb61c9af85282d 100644 (file)
@@ -1377,6 +1377,8 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
        net->watchdog_timeo = TX_TIMEOUT_JIFFIES;
        net->ethtool_ops = &usbnet_ethtool_ops;
 
+       info->flags |= FLAG_AVOID_UNLINK_URBS;
+
        // allow device-specific bind/init procedures
        // NOTE net->name still not usable ...
        if (info->bind) {