linux_dsm_epyc7002/drivers/net/ethernet/qualcomm/rmnet
Colin Ian King 3c18aa1464 net: qualcomm: rmnet: move null check on dev before dereferecing it
Currently dev is dereferenced by the call dev_net(dev) before dev is null
checked.  Fix this by null checking dev before the potential null
pointer dereference.

Detected by CoverityScan, CID#1462955 ("Dereference before null check")

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-11-24 17:40:35 -08:00
..
Kconfig net: qualcomm: rmnet: Add support for GRO 2017-10-28 00:10:23 +09:00
Makefile
rmnet_config.c net: qualcomm: rmnet: move null check on dev before dereferecing it 2018-11-24 17:40:35 -08:00
rmnet_config.h net: qualcomm: rmnet: Add support for ethtool private stats 2018-05-16 14:23:04 -04:00
rmnet_handlers.c net: qualcomm: rmnet: Fix incorrect allocation flag in receive path 2018-10-02 22:16:00 -07: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: Fix use after free while sending command ack 2018-06-05 10:17:05 -04:00
rmnet_map_data.c net: qualcomm: rmnet: Add support for ethtool private stats 2018-05-16 14:23:04 -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: Fix incorrect assignment of real_dev 2018-11-09 19:45:48 -08:00
rmnet_vnd.h net: qualcomm: rmnet: Convert the muxed endpoint to hlist 2017-10-11 20:05:30 -07:00