diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 95dc581861e8..3d516d57b5b2 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1565,7 +1565,7 @@ restart: | |||
1565 | xfrm_pol_put(policy); | 1565 | xfrm_pol_put(policy); |
1566 | return -EREMOTE; | 1566 | return -EREMOTE; |
1567 | } | 1567 | } |
1568 | if (err == -EAGAIN && flags) { | 1568 | if (err == -EAGAIN && (flags & XFRM_LOOKUP_WAIT)) { |
1569 | DECLARE_WAITQUEUE(wait, current); | 1569 | DECLARE_WAITQUEUE(wait, current); |
1570 | 1570 | ||
1571 | add_wait_queue(&km_waitq, &wait); | 1571 | add_wait_queue(&km_waitq, &wait); |