Re: [PATCH net-next] filter: refactor common filter attach code into __sk_attach_prog

From: Alexei Starovoitov <hidden>
Date: 2015-03-02 17:11:02

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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help