]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4956734538c57d393f05944dc7a6343a6fa0c9dd
tree36cf79f5208e948d150bf7fc7c806c0bd9d9709c
parente94221cd1a4a1ed3d3b777934d1c23eeaf657aa4
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 04b54809 ("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