linux-stable/drivers/net/can/usb
Colin Ian King 2ce4fd5a00 can: etas_es58x: Fix missing null check on netdev pointer
There is an assignment to *netdev that is that can potentially be null
but the null check is checking netdev and not *netdev as intended. Fix
this by adding in the missing * operator.

Fixes: 8537257874 ("can: etas_es58x: add core support for ETAS ES58X CAN USB interfaces")
Link: https://lore.kernel.org/r/20210415084723.1807935-1-colin.king@canonical.com
Addresses-Coverity: ("Dereference before null check")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2021-04-24 14:36:50 +02:00
..
etas_es58x can: etas_es58x: Fix missing null check on netdev pointer 2021-04-24 14:36:50 +02:00
kvaser_usb can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00
peak_usb can: peak_usb: pcan_usb: replace open coded endianness conversion of unaligned data 2021-04-13 10:15:44 +02:00
ems_usb.c can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00
esd_usb2.c can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00
gs_usb.c can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00
Kconfig can: etas_es58x: add core support for ETAS ES58X CAN USB interfaces 2021-04-13 10:15:42 +02:00
Makefile can: etas_es58x: add core support for ETAS ES58X CAN USB interfaces 2021-04-13 10:15:42 +02:00
mcba_usb.c can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00
ucan.c can: ucan: fix alignment constraints 2021-03-30 11:14:46 +02:00
usb_8dev.c can: dev: can_free_echo_skb(): extend to return can frame length 2021-03-30 11:14:28 +02:00