From: Thierry Reding Date: Fri, 14 Jun 2013 11:21:21 +0000 (+0200) Subject: USB: EHCI: tegra: Fix oops in error cleanup X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~78^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fefcfdd276be1459aaa2b2648037d2c0e1a3caa;p=pandora-kernel.git 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 Reviewed-by: Stephen Warren Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed