diff options
author | Jason Wang <jasowang@redhat.com> | 2019-05-08 23:20:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-16 19:40:29 +0200 |
commit | e0630246658aad0d220e2e73ade47d5639e9c350 (patch) | |
tree | d4fa7e7d45290e3d003a1277f6ff72aeede4fd76 /scripts/gdb/linux/utils.py | |
parent | 92edcf205388b6bb211f0e56e91582f0cfa7c3f8 (diff) |
tuntap: fix dividing by zero in ebpf queue selection
[ Upstream commit a35d310f03a692bf4798eb309a1950a06a150620 ]
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 <eric.dumazet@gmail.com>
Fixes: 96f84061620c6("tun: add eBPF based queue selection method")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions