git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
usb
/
gadget
/
lh7a40x_udc.c
diff --git
a/drivers/usb/gadget/lh7a40x_udc.c
b/drivers/usb/gadget/lh7a40x_udc.c
index
0d3424e
..
1a362c5
100644
(file)
--- a/
drivers/usb/gadget/lh7a40x_udc.c
+++ b/
drivers/usb/gadget/lh7a40x_udc.c
@@
-1114,10
+1114,11
@@
static struct usb_request *lh7a40x_alloc_request(struct usb_ep *ep,
DEBUG("%s, %p\n", __FUNCTION__, ep);
- req = k
zalloc(sizeof(*req)
, gfp_flags);
+ req = k
malloc(sizeof *req
, gfp_flags);
if (!req)
return 0;
+ memset(req, 0, sizeof *req);
INIT_LIST_HEAD(&req->queue);
return &req->req;