diff options
author | 2016-09-10 12:53:21 +0000 | |
---|---|---|
committer | 2016-10-25 16:14:32 +0800 | |
commit | 991d5add50a5bb6ab8f12f2129f5c7487f6baaf6 (patch) | |
tree | 00d35bd3a40530c43f17e5ec91223e494770068d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usb: renesas_usbhs: add wait after initialization for R-Car Gen3 (diff) | |
download | wireguard-linux-991d5add50a5bb6ab8f12f2129f5c7487f6baaf6.tar.xz wireguard-linux-991d5add50a5bb6ab8f12f2129f5c7487f6baaf6.zip |
usb: chipidea: host: fix NULL ptr dereference during shutdown
After commit b09b5224fe86 ("usb: chipidea: implement platform shutdown
callback") and commit 43a404577a93 ("usb: chipidea: host: set host to
be null after hcd is freed") a NULL pointer dereference is caused
on i.MX23 during shutdown. So ensure that role is set to CI_ROLE_END and
we finish interrupt handling before the hcd is deallocated. This avoids
the NULL pointer dereference.
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: b09b5224fe86 ("usb: chipidea: implement platform shutdown callback")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions