[IPSEC]: Make callers of xfrm_lookup to use XFRM_LOOKUP_WAIT
This patch converts all callers of xfrm_lookup that used an explicit value of 1 to indiciate blocking to use the new flag XFRM_LOOKUP_WAIT. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7233b9f33e
commit
bb72845e69
@@ -2536,7 +2536,8 @@ int ip_route_output_flow(struct rtable **rp, struct flowi *flp, struct sock *sk,
|
||||
flp->fl4_src = (*rp)->rt_src;
|
||||
if (!flp->fl4_dst)
|
||||
flp->fl4_dst = (*rp)->rt_dst;
|
||||
err = __xfrm_lookup((struct dst_entry **)rp, flp, sk, flags);
|
||||
err = __xfrm_lookup((struct dst_entry **)rp, flp, sk,
|
||||
flags ? XFRM_LOOKUP_WAIT : 0);
|
||||
if (err == -EREMOTE)
|
||||
err = ipv4_dst_blackhole(rp, flp, sk);
|
||||
|
||||
|
Reference in New Issue
Block a user