diff options
| author | 2013-04-03 21:57:57 +0200 | |
|---|---|---|
| committer | 2013-04-03 13:33:55 -0700 | |
| commit | 369a9a9d2af702bac3ccd2ade86ddcb2594eb3b1 (patch) | |
| tree | aa49afe27f16a38a04be29cbb71ef98115d995af /tools/lib/python/kdoc/python_version.py | |
| parent | usb: host: tegra: Reset Tegra USB controller before init (diff) | |
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 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
