diff options
| author | Minhong He <heminhong@kylinos.cn> | 2026-08-03 17:00:12 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-04 18:58:06 -0700 |
| commit | b16bab325801c7be004222cad0ae296aa5982e79 (patch) | |
| tree | ad86eaf915aad7024bfab37ac888faa2a826fcee /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | ac072a89cba261fc1f7dd31b633d15c460323699 (diff) | |
net: bonding: check register_netdevice_notifier() error in bonding_init()
bonding_init() ignores register_netdevice_notifier() errors and still
returns success, which can leave the bonding module loaded without its
netdev notifier registered.
Check the error and unwind prior initialization 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>
Acked-by: Jay Vosburgh <jv@jvosburgh.net>
Link: https://patch.msgid.link/20260803090012.142638-1-heminhong@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
