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

From: Eric Dumazet
Date: Thu May 09 2019 - 07:36:52 EST




On 5/8/19 11:20 PM, Jason Wang wrote:
> 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>
> ---

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Thanks.