aboutsummaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorThierry Reding <[email protected]>2013-04-03 21:57:57 +0200
committerGreg Kroah-Hartman <[email protected]>2013-04-03 13:33:55 -0700
commit369a9a9d2af702bac3ccd2ade86ddcb2594eb3b1 (patch)
treeaa49afe27f16a38a04be29cbb71ef98115d995af /include/linux/timerqueue.h
parenteb5369edca4f4307a6035dc6f6813698b0762906 (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 <[email protected]> Acked-by: Stephen Warren <[email protected]> Acked-by: Venu Byravarasu <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions