aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorSven Eckelmann <[email protected]>2018-12-30 12:46:01 +0100
committerSimon Wunderlich <[email protected]>2018-12-30 13:34:12 +0100
commit955d3411a17f590364238bd0d3329b61f20c1cd2 (patch)
treed8d2960cbbc94fa917e2caed80a78b45ff6f2fec /tools/perf/scripts/python/syscall-counts.py
parentb71acb0e372160167bf6d5500b88b30b52ccef6e (diff)
batman-adv: Avoid WARN on net_device without parent in netns
It is not allowed to use WARN* helpers on potential incorrect input from the user or transient problems because systems configured as panic_on_warn will reboot due to such a problem. A NULL return value of __dev_get_by_index can be caused by various problems which can either be related to the system configuration or problems (incorrectly returned network namespaces) in other (virtual) net_device drivers. batman-adv should not cause a (harmful) WARN in this situation and instead only report it via a simple message. Fixes: b7eddd0b3950 ("batman-adv: prevent using any virtual device created on batman-adv as hard-interface") Reported-by: [email protected] Reported-by: Dmitry Vyukov <[email protected]> Signed-off-by: Sven Eckelmann <[email protected]> Signed-off-by: Simon Wunderlich <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions