aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorIoana Ciornei <[email protected]>2020-07-14 15:08:16 +0300
committerJakub Kicinski <[email protected]>2020-07-15 17:31:52 -0700
commit841eb4012cef84820e5906527b31a854f42b0748 (patch)
tree7c7775cffe7f3623a2ef2651fbba93c99004d106 /drivers/usb/cdns3/cdns3-imx.c
parent1d61e21852d3161f234b9656797669fe185c251b (diff)
dpaa2-eth: check fsl_mc_get_endpoint for IS_ERR_OR_NULL()
The fsl_mc_get_endpoint() function can return an error or directly a NULL pointer in case the peer device is not under the root DPRC container. Treat this case also, otherwise it would lead to a NULL pointer when trying to access the peer fsl_mc_device. Fixes: 719479230893 ("dpaa2-eth: add MAC/PHY support through phylink") Signed-off-by: Ioana Ciornei <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions