mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
[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:
parent
7233b9f33e
commit
bb72845e69
7 changed files with 9 additions and 7 deletions
|
@ -1196,7 +1196,8 @@ int dn_route_output_sock(struct dst_entry **pprt, struct flowi *fl, struct sock
|
|||
|
||||
err = __dn_route_output_key(pprt, fl, flags & MSG_TRYHARD);
|
||||
if (err == 0 && fl->proto) {
|
||||
err = xfrm_lookup(pprt, fl, sk, !(flags & MSG_DONTWAIT));
|
||||
err = xfrm_lookup(pprt, fl, sk, (flags & MSG_DONTWAIT) ?
|
||||
XFRM_LOOKUP_WAIT : 0);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue