From: Alexei Starovoitov Date: Thu, 31 Jul 2014 03:34:12 +0000 (-0700) Subject: net: filter: simplify socket charging X-Git-Tag: cleanup-for-v3.18~108^2~35^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=278571baca2aecf5fb5cb5c8b002dbfa0a6c524c;p=pandora-kernel.git net: filter: simplify socket charging attaching bpf program to a socket involves multiple socket memory arithmetic, since size of 'sk_filter' is changing when classic BPF is converted to eBPF. Also common path of program creation has to deal with two ways of freeing the memory. Simplify the code by delaying socket charging until program is ready and its size is known Signed-off-by: Alexei Starovoitov Signed-off-by: David S. Miller --- Reading git-diff-tree failed