projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a2e910
)
usb: dwc2: Fix sizeof in kzalloc
author
John Youn
<John.Youn@synopsys.com>
Wed, 18 Jan 2017 04:32:41 +0000
(20:32 -0800)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 09:04:21 +0000
(11:04 +0200)
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>
drivers/usb/dwc2/gadget.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/dwc2/gadget.c
b/drivers/usb/dwc2/gadget.c
index 763f1fb3004e130ac33cf9fdd85eabcfee8d60c8..6e00177da02b2635b0650df75b41841131710c1c 100644
(file)
--- a/
drivers/usb/dwc2/gadget.c
+++ b/
drivers/usb/dwc2/gadget.c
@@
-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;