aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/devio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r--drivers/usb/core/devio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index d8cf06f186f2..3af5e2dd1d82 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -286,7 +286,8 @@ static struct async *alloc_async(unsigned int numisoframes)
286static void free_async(struct async *as) 286static void free_async(struct async *as)
287{ 287{
288 put_pid(as->pid); 288 put_pid(as->pid);
289 put_cred(as->cred); 289 if (as->cred)
290 put_cred(as->cred);
290 kfree(as->urb->transfer_buffer); 291 kfree(as->urb->transfer_buffer);
291 kfree(as->urb->setup_packet); 292 kfree(as->urb->setup_packet);
292 usb_free_urb(as->urb); 293 usb_free_urb(as->urb);