diff options
author | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 05:02:08 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 05:02:08 -0500 |
commit | 5501972e0b5857bc8354770d900ceb9b40c7f6b7 (patch) | |
tree | ff239422827c4cd54d2998f8851304255de31b38 /drivers/usb/gadget/pxa2xx_udc.c | |
parent | 9d2f928ddf64ca0361562e30faf584cd33055c60 (diff) | |
parent | e952f31bce6e9f64db01f607abc46529ba57ac9e (diff) |
Merge with rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
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 | } |