diff options
author | Jason Wang <[email protected]> | 2019-05-08 23:20:17 -0400 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-05-09 09:21:42 -0700 |
commit | a35d310f03a692bf4798eb309a1950a06a150620 (patch) | |
tree | 2c660d427f4ad30a9cbd7c1bc73be07d5ba1664e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 68a5cde9f02e690206e41c2d5aba88461a8829f1 (diff) |
tuntap: fix dividing by zero in ebpf queue selection
We need check if tun->numqueues is zero (e.g for the persist device)
before trying to use it for modular arithmetic.
Reported-by: Eric Dumazet <[email protected]>
Fixes: 96f84061620c6("tun: add eBPF based queue selection method")
Signed-off-by: Jason Wang <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions