]> git.baikalelectronics.ru Git - kernel.git/commit
tc: act_bpf: fix memory leak
authorAlexei Starovoitov <ast@plumgrid.com>
Tue, 14 Jul 2015 19:15:19 +0000 (12:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jul 2015 04:36:35 +0000 (21:36 -0700)
commit1e4a087cbe803d308c5347a23c747f87622c7055
treec029e06a270e06eb49eef9008648530e74703441
parent019c2bb29c75f3f59c84a0d8d801a2c8a0d10cee
tc: act_bpf: fix memory leak

prog->bpf_ops is populated when act_bpf is used with classic BPF and
prog->bpf_name is optionally used with extended BPF.
Fix memory leak when act_bpf is released.

Fixes: ca7d190d3123 ("tc: add BPF based action")
Fixes: d6a126e56d08 ("act_bpf: add initial eBPF support for actions")
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_bpf.c