On Sat, Nov 19, 2016 at 2:45 AM, Daniel Borkmann <dan...@iogearbox.net> wrote: > In mlx5e_create_rq(), when creating a new queue, we call bpf_prog_add() but > without checking the return value. bpf_prog_add() can fail since 92117d8443bc > ("bpf: fix refcnt overflow"), so we really must check it. Take the reference > right when we assign it to the rq from priv->xdp_prog, and just drop the > reference on error path. Destruction in mlx5e_destroy_rq() looks good, though. > > Fixes: 86994156c736 ("net/mlx5e: XDP fast RX drop bpf programs support") > Signed-off-by: Daniel Borkmann <dan...@iogearbox.net>
Acked-by: Saeed Mahameed <sae...@mellanox.com>