linux/drivers/net/wan
Minhong He e43e9d7cab net: lapbether: check register_netdevice_notifier() error in lapbeth_init_driver()
lapbeth_init_driver() ignores register_netdevice_notifier() errors and
always returns success, which can leave the module loaded without its
netdev notifier registered.

Check the error and remove the packet type on failure.

This is a future looking check, register_netdevice_notifier()
only fails on double registration or if the registered notifier
itself returns an error.

Signed-off-by: Minhong He <heminhong@kylinos.cn>
Link: https://patch.msgid.link/20260803085936.142160-1-heminhong@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-08-04 18:49:03 -07:00
..
framer Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
.gitignore
c101.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
farsync.c net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
farsync.h
fsl_qmc_hdlc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
fsl_ucc_hdlc.c net: wan: fsl_ucc_hdlc: free tx_skbuff in uhdlc_memclean 2026-05-08 18:48:30 -07:00
fsl_ucc_hdlc.h
hd64570.c
hd64570.h
hd64572.c
hd64572.h
hdlc_cisco.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
hdlc_fr.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
hdlc_ppp.c hdlc_ppp: sync per-proto timers before freeing hdlc state 2026-06-22 18:19:30 -07:00
hdlc_raw_eth.c
hdlc_raw.c
hdlc_x25.c
hdlc.c
ixp4xx_hss.c net: ixp4xx_hss: fix duplicate HDLC netdev allocation 2026-06-24 17:45:20 -07:00
Kconfig
lapbether.c net: lapbether: check register_netdevice_notifier() error in lapbeth_init_driver() 2026-08-04 18:49:03 -07:00
Makefile
n2.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pc300too.c net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
pci200syn.c net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
slic_ds26522.c
slic_ds26522.h
wanxl.c wanxl: Remove pci_map_single_debug() 2026-07-30 16:12:14 -07:00
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S