diff options
| author | Minhong He <heminhong@kylinos.cn> | 2026-08-03 17:00:02 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-04 18:53:35 -0700 |
| commit | ac072a89cba261fc1f7dd31b633d15c460323699 (patch) | |
| tree | a8f027d79b378d47779cccbb24fad9920f1409e0 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 82167f2f0fdec3ce2c418b2dd35408ba74b1f6e3 (diff) | |
net: vrf: check register_netdevice_notifier() error in vrf_init_module()
vrf_init_module() ignores register_netdevice_notifier() errors and
continues module initialization, which can leave VRF loaded without its
netdev notifier registered.
Check the error and fail module initialization early.
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>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20260803090002.142453-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
