linux_dsm_epyc7002/drivers/net/ethernet/qualcomm/rmnet
Colin Ian King 0c29ba1b43 net: qualcomm: rmnet: check for null ep to avoid null pointer dereference
The call to rmnet_get_endpoint can potentially return NULL so check
for this to avoid any subsequent null pointer dereferences on a NULL
ep.

Detected by CoverityScan, CID#1465385 ("Dereference null return value")

Fixes: 23790ef120 ("net: qualcomm: rmnet: Allow to configure flags for existing devices")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-26 12:11:24 -04:00
..
Kconfig net: qualcomm: rmnet: Add support for GRO 2017-10-28 00:10:23 +09:00
Makefile
rmnet_config.c net: qualcomm: rmnet: check for null ep to avoid null pointer dereference 2018-03-26 12:11:24 -04:00
rmnet_config.h net: qualcomm: rmnet: Update copyright year to 2018 2018-03-22 15:00:44 -04:00
rmnet_handlers.c net: qualcomm: rmnet: Export mux_id and flags to netlink 2018-03-22 15:00:44 -04:00
rmnet_handlers.h net: qualcomm: rmnet: Remove duplicate setting of rmnet private info 2017-10-11 20:05:30 -07:00
rmnet_map_command.c net: qualcomm: rmnet: Export mux_id and flags to netlink 2018-03-22 15:00:44 -04:00
rmnet_map_data.c net: qualcomm: rmnet: Export mux_id and flags to netlink 2018-03-22 15:00:44 -04:00
rmnet_map.h net: qualcomm: rmnet: Update copyright year to 2018 2018-03-22 15:00:44 -04:00
rmnet_private.h net: qualcomm: rmnet: Export mux_id and flags to netlink 2018-03-22 15:00:44 -04:00
rmnet_vnd.c net: qualcomm: rmnet: Update copyright year to 2018 2018-03-22 15:00:44 -04:00
rmnet_vnd.h net: qualcomm: rmnet: Convert the muxed endpoint to hlist 2017-10-11 20:05:30 -07:00