diff options
author | Paul Zimmerman <Paul.Zimmerman@synopsys.com> | 2014-02-04 20:21:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-04 21:59:14 +0100 |
commit | 51b1b6491752ac066ee8d32cc66042fcc955fef6 (patch) | |
tree | f2446587ac2ada418ddedb81dd1eca45245127fc /drivers/usb/serial/ftdi_sio_ids.h | |
parent | usb: dwc2: fix role switch breakage (diff) | |
download | linux-51b1b6491752ac066ee8d32cc66042fcc955fef6.tar.xz linux-51b1b6491752ac066ee8d32cc66042fcc955fef6.zip |
usb: dwc2: fix memory corruption in dwc2 driver
The move from the staging tree to the main tree exposed a
longstanding memory corruption bug in the dwc2 driver. The
reordering of the driver initialization caused the dwc2 driver
to corrupt the initialization data of the sdhci driver on the
Raspberry Pi platform, which made the bug show up.
The error is in calling to_usb_device(hsotg->dev), since ->dev
is not a member of struct usb_device. The easiest fix is to
just remove the offending code, since it is not really needed.
Thanks to Stephen Warren for tracking down the cause of this.
Reported-by: Andre Heider <a.heider@gmail.com>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio_ids.h')
0 files changed, 0 insertions, 0 deletions