]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
can: gw: Fix error path of cgw_module_init
authorYueHaibing <yuehaibing@huawei.com>
Sat, 18 May 2019 09:35:43 +0000 (17:35 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 24 Jul 2019 09:19:03 +0000 (11:19 +0200)
commitb7a14297f102b6e2ce6f16feffebbb9bde1e9b55
tree9d774cab21d33a0885b2ff44e5de5727ee4047d5
parentfee6a8923ae0d318a7f7950c6c6c28a96cea099b
can: gw: Fix error path of cgw_module_init

This patch add error path for cgw_module_init to avoid possible crash if
some error occurs.

Fixes: c1aabdf379bc ("can-gw: add netlink based CAN routing")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/gw.c