summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-13 01:28:24 +0000
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-22 10:45:11 +0300
commit3295235fd70ed6d594aadee8c892a14f6a4b2d2e (patch)
tree70c9caaad86ed1420e13c8a2d340942088be1d11 /drivers/usb/gadget
parent83f8da562f8b5275fa1095b45762996971f7c607 (diff)
downloadop-kernel-dev-3295235fd70ed6d594aadee8c892a14f6a4b2d2e.zip
op-kernel-dev-3295235fd70ed6d594aadee8c892a14f6a4b2d2e.tar.gz
usb: renesas_usbhs: gadget: fix return value check in usbhs_mod_gadget_probe()
In case of error, the function usb_get_phy() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: b5a2875605ca ("usb: renesas_usbhs: Allow an OTG PHY driver to provide VBUS") Cc: <stable@vger.kernel.org> # v4.3+ Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud