From: Florian Westphal Date: Sat, 15 Feb 2014 22:48:45 +0000 (+0100) Subject: netfilter: nf_tables: fix nf_trace always-on with XT_TRACE=n X-Git-Tag: v3.14-rc6~30^2~56^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=478b360a47b71f3b5030eacd3aae6acb1a32c2b6;p=pandora-kernel.git netfilter: nf_tables: fix nf_trace always-on with XT_TRACE=n When using nftables with CONFIG_NETFILTER_XT_TARGET_TRACE=n, we get lots of "TRACE: filter:output:policy:1 IN=..." warnings as several places will leave skb->nf_trace uninitialised. Unlike iptables tracing functionality is not conditional in nftables, so always copy/zero nf_trace setting when nftables is enabled. Move this into __nf_copy() helper. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed