Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec33efe2 authored by John Youn's avatar John Youn Committed by Felipe Balbi
Browse files

usb: dwc2: Fix sizeof in kzalloc



Take the sizeof '*req' instead of 'struct dwc2_hsotg_req'.

Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 1a2e9109
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;