summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/udc.h
diff options
context:
space:
mode:
authorThierry Reding <thierry@gilfi.de>2013-04-03 21:57:57 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-03 13:33:55 -0700
commit369a9a9d2af702bac3ccd2ade86ddcb2594eb3b1 (patch)
treeaa49afe27f16a38a04be29cbb71ef98115d995af /drivers/usb/chipidea/udc.h
parenteb5369edca4f4307a6035dc6f6813698b0762906 (diff)
downloadop-kernel-dev-369a9a9d2af702bac3ccd2ade86ddcb2594eb3b1.zip
op-kernel-dev-369a9a9d2af702bac3ccd2ade86ddcb2594eb3b1.tar.gz
usb: host: ehci-tegra: Fix oops in error cleanup
The cleanup path checks whether the transceiver was properly initialized using IS_ERR(). However it can also happen that the cleanup path is run before the transceiver was initialized (or the operating mode isn't set to TEGRA_USB_OTG) and is therefore NULL. Add a separate label for error unwinding and initialize the transceiver field to ERR_PTR(-ENODEV) when the operating mode isn't TEGRA_USB_OTG to allow for consistent checking. Signed-off-by: Thierry Reding <thierry@gilfi.de> Acked-by: Stephen Warren <swarren@nvidia.com> Acked-by: Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/udc.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud