summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.com>2024-10-08 21:47:36 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-10-10 16:39:35 +0300
commit5be2062e3080e3ff6707816caa445ec0c6eaacf7 (patch)
tree879ba5e14150362810f9a2c8b9f5de5883f6b5c8 /tools/perf/scripts/python
parentd51705614f668254cc5def7490df76f9680b4659 (diff)
downloadlinux-5be2062e3080e3ff6707816caa445ec0c6eaacf7.tar.xz
mpls: Handle error of rtnl_register_module().
Since introduced, mpls_init() has been ignoring the returned value of rtnl_register_module(), which could fail silently. Handling the error allows users to view a module as an all-or-nothing thing in terms of the rtnetlink functionality. This prevents syzkaller from reporting spurious errors from its tests, where OOM often occurs and module is automatically loaded. Let's handle the errors by rtnl_register_many(). Fixes: 03c0566542f4 ("mpls: Netlink commands to add, remove, and dump routes") Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions