linux_dsm_epyc7002/drivers/net/ethernet/qualcomm
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
..
emac net: qcom/emac: Add missing of_node_put() 2018-06-14 17:01:05 -07:00
rmnet net: qualcomm: rmnet: move null check on dev before dereferecing it 2018-11-24 17:40:35 -08:00
Kconfig drivers: net: ethernet: qualcomm: rmnet: Initial implementation 2017-08-30 11:41:13 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qca_7k_common.c net: qualcomm: make qca_7k_common a separate kernel module 2017-05-30 13:57:30 -04:00
qca_7k_common.h net: qualcomm: add QCA7000 UART driver 2017-05-30 13:57:32 -04:00
qca_7k.c net: qca_spi: Introduce write register verification 2018-09-24 12:26:06 -07:00
qca_7k.h net: qca_spi: Introduce write register verification 2018-09-24 12:26:06 -07:00
qca_debug.c net: qca_spi: Add available buffer space verification 2018-11-08 19:41:01 -08:00
qca_debug.h
qca_spi.c net: qca_spi: Add available buffer space verification 2018-11-08 19:41:01 -08:00
qca_spi.h net: qca_spi: Add available buffer space verification 2018-11-08 19:41:01 -08:00
qca_uart.c net: qualcomm: add QCA7000 UART driver 2017-05-30 13:57:32 -04:00