projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: chipidea: host: fix NULL ptr dereference during shutdown
[cascardo/linux.git]
/
drivers
/
usb
/
chipidea
/
host.c
diff --git
a/drivers/usb/chipidea/host.c
b/drivers/usb/chipidea/host.c
index
96ae695
..
111b0e0
100644
(file)
--- a/
drivers/usb/chipidea/host.c
+++ b/
drivers/usb/chipidea/host.c
@@
-188,6
+188,8
@@
static void host_stop(struct ci_hdrc *ci)
if (hcd) {
usb_remove_hcd(hcd);
+ ci->role = CI_ROLE_END;
+ synchronize_irq(ci->irq);
usb_put_hcd(hcd);
if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci) &&
(ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON))