diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/devio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 32e5591ae7b1..e661994ad18d 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -210,9 +210,9 @@ err: | |||
210 | 210 | ||
211 | static struct async *alloc_async(unsigned int numisoframes) | 211 | static struct async *alloc_async(unsigned int numisoframes) |
212 | { | 212 | { |
213 | unsigned int assize = sizeof(struct async) + numisoframes * sizeof(struct usb_iso_packet_descriptor); | 213 | struct async *as; |
214 | struct async *as = kzalloc(assize, GFP_KERNEL); | ||
215 | 214 | ||
215 | as = kzalloc(sizeof(struct async), GFP_KERNEL); | ||
216 | if (!as) | 216 | if (!as) |
217 | return NULL; | 217 | return NULL; |
218 | as->urb = usb_alloc_urb(numisoframes, GFP_KERNEL); | 218 | as->urb = usb_alloc_urb(numisoframes, GFP_KERNEL); |