diff options
Diffstat (limited to 'drivers/usb/gadget/pxa2xx_udc.c')
-rw-r--r-- | drivers/usb/gadget/pxa2xx_udc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/pxa2xx_udc.c b/drivers/usb/gadget/pxa2xx_udc.c index bb028c5b8952..680f7fc5b171 100644 --- a/drivers/usb/gadget/pxa2xx_udc.c +++ b/drivers/usb/gadget/pxa2xx_udc.c | |||
@@ -335,11 +335,10 @@ pxa2xx_ep_alloc_request (struct usb_ep *_ep, gfp_t gfp_flags) | |||
335 | { | 335 | { |
336 | struct pxa2xx_request *req; | 336 | struct pxa2xx_request *req; |
337 | 337 | ||
338 | req = kmalloc (sizeof *req, gfp_flags); | 338 | req = kzalloc(sizeof(*req), gfp_flags); |
339 | if (!req) | 339 | if (!req) |
340 | return NULL; | 340 | return NULL; |
341 | 341 | ||
342 | memset (req, 0, sizeof *req); | ||
343 | INIT_LIST_HEAD (&req->queue); | 342 | INIT_LIST_HEAD (&req->queue); |
344 | return &req->req; | 343 | return &req->req; |
345 | } | 344 | } |