projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd8c3ae
)
ehci: msm: Add missing platdata
author
Ramon Fried
<ramon.fried@gmail.com>
Fri, 21 Sep 2018 10:35:44 +0000
(13:35 +0300)
committer
Tom Rini
<trini@konsulko.com>
Sun, 30 Sep 2018 17:00:35 +0000
(13:00 -0400)
platdata_auto_alloc_size was not initialized in structure.
Caused null pointer dereference when configuring device as
gadget.
Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
drivers/usb/host/ehci-msm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-msm.c
b/drivers/usb/host/ehci-msm.c
index
db98262
..
e7fb76d
100644
(file)
--- a/
drivers/usb/host/ehci-msm.c
+++ b/
drivers/usb/host/ehci-msm.c
@@
-167,5
+167,6
@@
U_BOOT_DRIVER(usb_ehci) = {
.remove = ehci_usb_remove,
.ops = &ehci_usb_ops,
.priv_auto_alloc_size = sizeof(struct msm_ehci_priv),
+ .platdata_auto_alloc_size = sizeof(struct usb_platdata),
.flags = DM_FLAG_ALLOC_PRIV_DMA,
};