|
@@ -813,8 +813,11 @@ static int sl811h_urb_enqueue(
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* avoid all allocations within spinlocks */
|
|
/* avoid all allocations within spinlocks */
|
|
- if (!hep->hcpriv)
|
|
|
|
|
|
+ if (!hep->hcpriv) {
|
|
ep = kzalloc(sizeof *ep, mem_flags);
|
|
ep = kzalloc(sizeof *ep, mem_flags);
|
|
|
|
+ if (ep == NULL)
|
|
|
|
+ return -ENOMEM;
|
|
|
|
+ }
|
|
|
|
|
|
spin_lock_irqsave(&sl811->lock, flags);
|
|
spin_lock_irqsave(&sl811->lock, flags);
|
|
|
|
|