On Thu, Nov 17, 2016 at 01:21:46PM +0100, Florian Westphal wrote:
> 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 <nicolas.dich...@6wind.com>
> Tested-by: Nicolas Dichtel <nicolas.dich...@6wind.com>
> Signed-off-by: Florian Westphal <f...@strlen.de>

Applied to the ipsec tree, thanks everyone!

Reply via email to