diff options
Diffstat (limited to 'drivers/usb/host/sl811-hcd.c')
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index bcf9f0e809de..990f06b89eaa 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
@@ -813,8 +813,11 @@ static int sl811h_urb_enqueue( | |||
813 | #endif | 813 | #endif |
814 | 814 | ||
815 | /* avoid all allocations within spinlocks */ | 815 | /* avoid all allocations within spinlocks */ |
816 | if (!hep->hcpriv) | 816 | if (!hep->hcpriv) { |
817 | ep = kzalloc(sizeof *ep, mem_flags); | 817 | ep = kzalloc(sizeof *ep, mem_flags); |
818 | if (ep == NULL) | ||
819 | return -ENOMEM; | ||
820 | } | ||
818 | 821 | ||
819 | spin_lock_irqsave(&sl811->lock, flags); | 822 | spin_lock_irqsave(&sl811->lock, flags); |
820 | 823 | ||