mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04: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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
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…
Reference in a new issue