Re: [PATCH net V3 1/2] tuntap: fix dividing by zero in ebpf queue selection

From: David Miller
Date: Thu May 09 2019 - 12:23:48 EST

From: Jason Wang <jasowang@xxxxxxxxxx>
Date: Wed, 8 May 2019 23:20:17 -0400

> 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@xxxxxxxxx>
> Fixes: 96f84061620c6("tun: add eBPF based queue selection method")
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>

Applied and queued up for -stable.