Skip to content
Snippets Groups Projects
Commit 369d3c43 authored by Stephen Warren's avatar Stephen Warren Committed by Marek Vasut
Browse files

USB: gadget: atmel: zero out allocated requests


A UDC's alloc_request method should zero out the newly allocated request.
Ensure the Atmel driver does so. This issue was found by code inspection,
following the investigation of an intermittent issue with ci_udc, which
was tracked down to failing to zero out allocated requests following some
of my changes. All other UDC drivers already zero out requests in one
way or another.

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 639e9903
No related branches found
No related tags found
No related merge requests found
......@@ -314,7 +314,7 @@ usba_ep_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags)
DBG(DBG_GADGET, "ep_alloc_request: %p, 0x%x\n", _ep, gfp_flags);
req = malloc(sizeof(struct usba_request));
req = calloc(1, sizeof(struct usba_request));
if (!req)
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment