aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_basic.c
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2016-11-17 12:21:46 +0000
committerSteffen Klassert <[email protected]>2016-11-18 06:00:05 +0000
commit330e832abda923df06a4ca6d3faac6e9c1b42548 (patch)
treecbe128eef39cf12faf87898eebd7fdfd54f9a6bc /net/sched/cls_basic.c
parentvti6: flush x-netns xfrm cache when vti interface is removed (diff)
downloadkernel-330e832abda923df06a4ca6d3faac6e9c1b42548.tar.gz
kernel-330e832abda923df06a4ca6d3faac6e9c1b42548.zip
xfrm: unbreak xfrm_sk_policy_lookup
if we succeed grabbing the refcount, then if (err && !xfrm_pol_hold_rcu) will evaluate to false so this hits last else branch which then sets policy to ERR_PTR(0). Fixes: ae33786f73a7ce ("xfrm: policy: only use rcu in xfrm_sk_policy_lookup") Reported-by: Nicolas Dichtel <[email protected]> Tested-by: Nicolas Dichtel <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
0 files changed, 0 insertions, 0 deletions