diff options
-rw-r--r-- | drivers/usb/gadget/ether.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 8f9f217e0a68..96df8413f391 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
@@ -1735,7 +1735,8 @@ enomem: | |||
1735 | defer_kevent (dev, WORK_RX_MEMORY); | 1735 | defer_kevent (dev, WORK_RX_MEMORY); |
1736 | if (retval) { | 1736 | if (retval) { |
1737 | DEBUG (dev, "rx submit --> %d\n", retval); | 1737 | DEBUG (dev, "rx submit --> %d\n", retval); |
1738 | dev_kfree_skb_any (skb); | 1738 | if (skb) |
1739 | dev_kfree_skb_any(skb); | ||
1739 | spin_lock(&dev->req_lock); | 1740 | spin_lock(&dev->req_lock); |
1740 | list_add (&req->list, &dev->rx_reqs); | 1741 | list_add (&req->list, &dev->rx_reqs); |
1741 | spin_unlock(&dev->req_lock); | 1742 | spin_unlock(&dev->req_lock); |