OpenCloudOS-Kernel/drivers/net/ethernet/freescale/dpaa2
Ioana Ciornei 841eb4012c 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: 7194792308 ("dpaa2-eth: add MAC/PHY support through phylink")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-07-15 17:31:52 -07:00
..
Kconfig dpaa2-eth: Add PFC support through DCB ops 2020-06-01 12:04:32 -07:00
Makefile dpaa2-eth: Add PFC support through DCB ops 2020-06-01 12:04:32 -07:00
dpaa2-eth-dcb.c dpaa2-eth: Keep congestion group taildrop enabled when PFC on 2020-06-01 12:04:32 -07:00
dpaa2-eth-debugfs.c dpaa2-eth: Add support for Rx traffic classes 2020-06-01 12:04:32 -07:00
dpaa2-eth-debugfs.h dpaa2: no need to check return value of debugfs_create functions 2019-08-10 15:25:48 -07:00
dpaa2-eth-trace.h
dpaa2-eth.c dpaa2-eth: check fsl_mc_get_endpoint for IS_ERR_OR_NULL() 2020-07-15 17:31:52 -07:00
dpaa2-eth.h dpaa2-eth: Keep congestion group taildrop enabled when PFC on 2020-06-01 12:04:32 -07:00
dpaa2-ethtool.c dpaa2-eth: Add helper functions 2020-06-01 12:04:32 -07:00
dpaa2-mac.c net: dpaa2-mac: use resolved link config in mac_link_up() 2020-02-27 12:02:14 -08:00
dpaa2-mac.h net: dpaa2-mac: use resolved link config in mac_link_up() 2020-02-27 12:02:14 -08:00
dpaa2-ptp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-12-22 15:15:05 -08:00
dpaa2-ptp.h net: dpaa2: Use the correct style for SPDX License Identifier 2019-10-28 13:40:17 -07:00
dpkg.h
dpmac-cmd.h dpaa2-eth: add ethtool MAC counters 2019-11-07 15:31:53 -08:00
dpmac.c dpaa2-eth: add ethtool MAC counters 2019-11-07 15:31:53 -08:00
dpmac.h dpaa2-eth: add ethtool MAC counters 2019-11-07 15:31:53 -08:00
dpni-cmd.h dpaa2-eth: Add PFC support through DCB ops 2020-06-01 12:04:32 -07:00
dpni.c dpaa2-eth: Add PFC support through DCB ops 2020-06-01 12:04:32 -07:00
dpni.h dpaa2-eth: Add PFC support through DCB ops 2020-06-01 12:04:32 -07:00
dprtc-cmd.h dpaa2-ptp: add external trigger event support 2019-12-16 15:56:41 -08:00
dprtc.c dpaa2-ptp: add interrupt support 2019-06-15 13:43:06 -07:00
dprtc.h dpaa2-ptp: add external trigger event support 2019-12-16 15:56:41 -08:00