projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: EHCI: tegra: Fix use-after-free in .remove()
[cascardo/linux.git]
/
drivers
/
usb
/
host
/
ehci-tegra.c
diff --git
a/drivers/usb/host/ehci-tegra.c
b/drivers/usb/host/ehci-tegra.c
index
c303371
..
693f792
100644
(file)
--- a/
drivers/usb/host/ehci-tegra.c
+++ b/
drivers/usb/host/ehci-tegra.c
@@
-479,10
+479,11
@@
static int tegra_ehci_remove(struct platform_device *pdev)
usb_phy_shutdown(hcd->phy);
usb_remove_hcd(hcd);
- usb_put_hcd(hcd);
clk_disable_unprepare(tegra->clk);
+ usb_put_hcd(hcd);
+
return 0;
}