linux-stable/net/can
YueHaibing 7f0359b6bf can: af_can: Fix error path of can_init()
[ Upstream commit c5a3aed1cd ]

This patch add error path for can_init() to avoid possible crash if some
error occurs.

Fixes: 0d66548a10 ("[CAN]: Add PF_CAN core module")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-21 09:04:22 +02:00
..
af_can.c can: af_can: Fix error path of can_init() 2019-07-21 09:04:22 +02:00
af_can.h can: complete initial namespace support 2017-04-25 09:04:29 +02:00
bcm.c can: bcm: check timer values before ktime conversion 2019-01-31 08:13:46 +01:00
gw.c can: gw: ensure DLC boundaries after CAN frame modification 2019-01-23 08:09:46 +01:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
proc.c can: complete initial namespace support 2017-04-25 09:04:29 +02:00
raw.c can: raw: check for CAN FD capable netdev in raw_sendmsg() 2018-12-01 09:42:52 +01:00