summaryrefslogtreecommitdiff
path: root/include/uapi/linux/rfkill.h
diff options
context:
space:
mode:
authorMinhong He <heminhong@kylinos.cn>2026-07-21 17:39:56 +0800
committerJakub Kicinski <kuba@kernel.org>2026-07-23 10:28:50 -0700
commitd1ff66b66151c14b084e88040512a064b1c1e493 (patch)
tree28518904cf215b0baa7b2cc54bedd04d5b580236 /include/uapi/linux/rfkill.h
parent0f71f852a96af9685858ce59fda34ecbf85c283d (diff)
downloadlinux-d1ff66b66151c14b084e88040512a064b1c1e493.tar.gz
linux-d1ff66b66151c14b084e88040512a064b1c1e493.zip
phonet: check register_netdevice_notifier() error in phonet_device_init()
phonet_device_init() registers a netdevice notifier before calling phonet_netlink_register(), but does not check whether notifier registration succeeded. On failure, netlink setup still proceeds and init may return success without the notifier in place. Also, the existing phonet_netlink_register() failure path called phonet_device_exit(), which runs rtnl_unregister_all() even though rtnl_register_many() already unwound any partial registration. Calling the full exit helper on a partial init is not correct. Check each registration error, including proc_create_net(), and unwind only the steps that have succeeded so far, in reverse order. Signed-off-by: Minhong He <heminhong@kylinos.cn> Link: https://patch.msgid.link/20260721093956.162617-1-heminhong@kylinos.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/rfkill.h')
0 files changed, 0 insertions, 0 deletions