summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-omap.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-06-14 13:21:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-17 13:56:25 -0700
commit8fefcfdd276be1459aaa2b2648037d2c0e1a3caa (patch)
tree059f36d675a7c52b9fe2990a173c7979e8b4ebd1 /drivers/usb/host/ehci-omap.c
parentc19d14d6d0120e73418294e6a30db0566e5daf02 (diff)
USB: EHCI: tegra: Fix oops in error cleanup
Under some circumstances it happens that the connected PHY can't be powered up properly, in which case the cleanup path currently crashes because it checks the tegra->transceiver field using !IS_ERR(), which will succeed because it is in fact NULL. Dereferencing that pointer causes an oops in tegra_ehci_probe(). This patch fixes the issue by adding an additional label into the cleanup path to separately take down the PHY and the transceiver. Signed-off-by: Thierry Reding <thierry.reding@gmail.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-omap.c')
0 files changed, 0 insertions, 0 deletions