Ignore:
Timestamp:
Apr 18, 2017, 8:47:31 AM (7 days ago)
Author:
brainslayer
Message:

update kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c

    r31574 r31884  
    320320                          rt2x00usb_interrupt_txdone, entry);
    321321
    322         usb_anchor_urb(entry_priv->urb, rt2x00dev->anchor);
    323322        status = usb_submit_urb(entry_priv->urb, GFP_ATOMIC);
    324323        if (status) {
    325                 usb_unanchor_urb(entry_priv->urb);
    326324                if (status == -ENODEV)
    327325                        clear_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags);
     
    411409                          rt2x00usb_interrupt_rxdone, entry);
    412410
    413         usb_anchor_urb(entry_priv->urb, rt2x00dev->anchor);
    414411        status = usb_submit_urb(entry_priv->urb, GFP_ATOMIC);
    415412        if (status) {
    416                 usb_unanchor_urb(entry_priv->urb);
    417413                if (status == -ENODEV)
    418414                        clear_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags);
     
    825821                goto exit_free_device;
    826822
    827         retval = rt2x00lib_probe_dev(rt2x00dev);
    828         if (retval)
    829                 goto exit_free_reg;
    830 
    831823        rt2x00dev->anchor = devm_kmalloc(&usb_dev->dev,
    832824                                        sizeof(struct usb_anchor),
     
    836828                goto exit_free_reg;
    837829        }
    838 
    839830        init_usb_anchor(rt2x00dev->anchor);
     831
     832        retval = rt2x00lib_probe_dev(rt2x00dev);
     833        if (retval)
     834                goto exit_free_anchor;
     835
    840836        return 0;
     837
     838exit_free_anchor:
     839        usb_kill_anchored_urbs(rt2x00dev->anchor);
    841840
    842841exit_free_reg:
Note: See TracChangeset for help on using the changeset viewer.