usb: dwc2: Fix sizeof in kzalloc
Take the sizeof '*req' instead of 'struct dwc2_hsotg_req'. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
1a2e910913
commit
ec33efe28f
|
@ -281,7 +281,7 @@ static struct usb_request *dwc2_hsotg_ep_alloc_request(struct usb_ep *ep,
|
|||
{
|
||||
struct dwc2_hsotg_req *req;
|
||||
|
||||
req = kzalloc(sizeof(struct dwc2_hsotg_req), flags);
|
||||
req = kzalloc(sizeof(*req), flags);
|
||||
if (!req)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue