On Mon, Mar 2, 2015 at 3:25 AM, Daniel Borkmann [off-list ref] wrote:
Both sk_attach_filter() and sk_attach_bpf() are setting up sk_filter,
charging skmem and attaching it to the socket after we got the eBPF
prog up and ready. Lets refactor that into a common helper.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
---
tricky :) went few times of the code, since it felt that
there is memory leak, but finally got it, I think it all good.
Acked-by: Alexei Starovoitov <redacted>