Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (3 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/drivers/usb/core/hcd.c

    r30256 r31869  
    499499        tbuf_size =  max_t(u16, sizeof(struct usb_hub_descriptor), wLength);
    500500        tbuf = kzalloc(tbuf_size, GFP_KERNEL);
    501         if (!tbuf)
    502                 return -ENOMEM;
     501        if (!tbuf) {
     502                status = -ENOMEM;
     503                goto err_alloc;
     504        }
    503505
    504506        bufp = tbuf;
     
    703705
    704706        kfree(tbuf);
     707 err_alloc:
    705708
    706709        /* any errors get returned through the urb completion */
Note: See TracChangeset for help on using the changeset viewer.