aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-msm.c
diff options
context:
space:
mode:
authorRamon Fried <ramon.fried@gmail.com>2018-09-21 13:35:44 +0300
committerTom Rini <trini@konsulko.com>2018-09-30 13:00:35 -0400
commit2df49234c6508052ed02602f882d3ce0332d937f (patch)
tree5a64bd80d2dd677c8e1b4c80818c1a14d1a98b10 /drivers/usb/host/ehci-msm.c
parentcd8c3aec7fe1aa8e72b1be24675e0de37a66ef6e (diff)
downloadu-boot-2df49234c6508052ed02602f882d3ce0332d937f.zip
u-boot-2df49234c6508052ed02602f882d3ce0332d937f.tar.gz
u-boot-2df49234c6508052ed02602f882d3ce0332d937f.tar.bz2
ehci: msm: Add missing platdata
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>
Diffstat (limited to 'drivers/usb/host/ehci-msm.c')
-rw-r--r--drivers/usb/host/ehci-msm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c
index db98262..e7fb76d 100644
--- 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,
};