usb: chipidea: fix no transceiver case
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Tue, 11 Jun 2013 10:41:47 +0000 (13:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2013 23:18:04 +0000 (16:18 -0700)
commitd343f4e8d6e4e4237b25b32e4f6a09d1281d4ca3
tree36cf79f5208e948d150bf7fc7c806c0bd9d9709c
parent2d8f4447b58bba5f8cb895c07690434c02307eaf
usb: chipidea: fix no transceiver case

Since usb phy code does return ERR_PTR() values, make sure that we don't
end up dereferencing them. This is a problem, for example, on platforms
that don't register a phy for chipidea since b7fa5c2a ("usb: phy: return
-ENXIO when PHY layer isn't enabled").

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c
This page took 0.025513 seconds and 5 git commands to generate.