linux/net/can
Minhong He ef09a13c5a can: isotp: check register_netdevice_notifier() error in module init
Register the netdevice notifier before can_proto_register() and check the
return value. If protocol registration fails, unregister the notifier
before returning the error.

Align isotp_module_init() with the reordering already done for raw.c
(commit c28b3bffe4 ("can: raw: process optimization in raw_init()")) and
bcm.c (commit edd1a7e42f ("can: bcm: registration process optimization
in bcm_module_init()")).

Fixes: 8d0caedb75 ("can: bcm/raw/isotp: use per module netdevice notifier")
Signed-off-by: Minhong He <heminhong@kylinos.cn>
Link: https://patch.msgid.link/20260729085656.134523-1-heminhong@kylinos.cn
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2026-07-29 11:26:41 +02:00
..
j1939 can: j1939: transport: j1939_session_fresh_new(): initialize receive buffer 2026-07-29 10:15:33 +02:00
af_can.c can: statistics: add missing atomic access in hot path 2026-03-19 14:53:19 +01:00
af_can.h can: statistics: add missing atomic access in hot path 2026-03-19 14:53:19 +01:00
bcm.c can: bcm: track a single source interface for ANYDEV timeout/throttle ops 2026-07-16 10:02:20 +02:00
gw.c can: gw: fix OOB heap access in cgw_csum_crc8_rel() 2026-03-19 17:16:02 +01:00
isotp.c can: isotp: check register_netdevice_notifier() error in module init 2026-07-29 11:26:41 +02:00
Kconfig can: add CAN skb extension infrastructure 2026-02-05 11:58:39 +01:00
Makefile can: add ISO 15765-2:2016 transport protocol 2020-10-07 23:18:33 +02:00
proc.c can: statistics: add missing atomic access in hot path 2026-03-19 14:53:19 +01:00
raw.c can: raw: add locking for raw flags bitfield 2026-07-14 11:21:04 +02:00