diff options
| author | Minhong He <heminhong@kylinos.cn> | 2026-07-29 16:56:56 +0800 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2026-07-29 11:26:41 +0200 |
| commit | ef09a13c5afac41a3c4b5f22b8572820d9e7518c (patch) | |
| tree | bc584331e7e4b4c4c01a81bc904f204f5fb24c2a /tools/perf/scripts/python/stackcollapse.py | |
| parent | 050f010f920da17c1044a4f174766ad553e770b6 (diff) | |
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 c28b3bffe49e ("can: raw: process optimization in raw_init()")) and
bcm.c (commit edd1a7e42f1d ("can: bcm: registration process optimization
in bcm_module_init()")).
Fixes: 8d0caedb7596 ("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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
