diff options
Diffstat (limited to 'drivers/usb/gadget/lh7a40x_udc.c')
-rw-r--r-- | drivers/usb/gadget/lh7a40x_udc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/lh7a40x_udc.c b/drivers/usb/gadget/lh7a40x_udc.c index 1a362c5e7f3d..0d3424eda038 100644 --- a/drivers/usb/gadget/lh7a40x_udc.c +++ b/drivers/usb/gadget/lh7a40x_udc.c | |||
@@ -1114,11 +1114,10 @@ static struct usb_request *lh7a40x_alloc_request(struct usb_ep *ep, | |||
1114 | 1114 | ||
1115 | DEBUG("%s, %p\n", __FUNCTION__, ep); | 1115 | DEBUG("%s, %p\n", __FUNCTION__, ep); |
1116 | 1116 | ||
1117 | req = kmalloc(sizeof *req, gfp_flags); | 1117 | req = kzalloc(sizeof(*req), gfp_flags); |
1118 | if (!req) | 1118 | if (!req) |
1119 | return 0; | 1119 | return 0; |
1120 | 1120 | ||
1121 | memset(req, 0, sizeof *req); | ||
1122 | INIT_LIST_HEAD(&req->queue); | 1121 | INIT_LIST_HEAD(&req->queue); |
1123 | 1122 | ||
1124 | return &req->req; | 1123 | return &req->req; |