From: Daniel Borkmann Date: Thu, 31 Jul 2014 19:48:59 +0000 (+0200) Subject: team: fix releasing uninitialized pointer to BPF prog X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b391ee2cae3945832011970bede35dab885879d;p=pandora-kernel.git team: fix releasing uninitialized pointer to BPF prog Commit 34c5bd66e5ed introduced the possibility that an uninitialized pointer on the stack (orig_fp) can call into sk_unattached_filter_destroy() when its value is non NULL. Before that commit orig_fp was only destroyed in the same block where it was assigned a valid BPF prog before. Fix it up by initializing it to NULL. Fixes: 34c5bd66e5ed ("net: filter: don't release unattached filter through call_rcu()") Signed-off-by: Daniel Borkmann Cc: Pablo Neira Cc: Alexei Starovoitov Cc: Jiri Pirko Signed-off-by: David S. Miller --- Reading git-diff-tree failed