diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/urb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index ac4273dddf34..52ec44b828f3 100644 --- a/drivers/usb/core/urb.c +++ b/drivers/usb/core/urb.c | |||
@@ -13,6 +13,9 @@ static void urb_destroy(struct kref *kref) | |||
13 | { | 13 | { |
14 | struct urb *urb = to_urb(kref); | 14 | struct urb *urb = to_urb(kref); |
15 | 15 | ||
16 | if (urb->transfer_flags & URB_FREE_BUFFER) | ||
17 | kfree(urb->transfer_buffer); | ||
18 | |||
16 | kfree(urb); | 19 | kfree(urb); |
17 | } | 20 | } |
18 | 21 | ||