From: Thomas Graf Date: Sat, 25 Aug 2007 20:46:55 +0000 (-0700) Subject: [XFRM] policy: Replace magic number with XFRM_POLICY_OUT X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7944fb1913130ae7858008af96e52a3a6b04118;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [XFRM] policy: Replace magic number with XFRM_POLICY_OUT Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 7012891d39f2..6ab81b1d215e 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -1477,7 +1477,7 @@ restart: pol_dead = 0; xfrm_nr = 0; - if (sk && sk->sk_policy[1]) { + if (sk && sk->sk_policy[XFRM_POLICY_OUT]) { policy = xfrm_sk_policy_lookup(sk, XFRM_POLICY_OUT, fl); if (IS_ERR(policy)) return PTR_ERR(policy);