aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2023-07-31 10:11:58 -0700
committerJakub Kicinski <[email protected]>2023-08-01 15:01:29 -0700
commitceaac91dcd065db781d1ed5dfaef0686b8ec44dc (patch)
tree4eaf30a87763ea3be8b9ccf7b0d828806bc0c18e /tools/perf/scripts
parent005c9600003eabcb22336f37e149eed08f0a946a (diff)
net: make sure we never create ifindex = 0
Instead of allocating from 1 use proper xa_init flag, to protect ourselves from IDs wrapping back to 0. Fixes: 759ab1edb56c ("net: store netdevs in an xarray") Reported-by: Stephen Hemminger <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Reviewed-by: Leon Romanovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions