]> git.hungrycats.org Git - linux/commitdiff
[XFRM]: Do not schedule() when MSG_DONTWAIT.
authorKrishna Kumar <krkumar@us.ibm.com>
Wed, 4 Feb 2004 15:10:56 +0000 (07:10 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Wed, 4 Feb 2004 15:10:56 +0000 (07:10 -0800)
net/xfrm/xfrm_policy.c

index d4005d3bb2fd326d98a5f4e0ae08c0cf8cd10e64..86a50d494190d93ef98c3001dd214690d89d7be7 100644 (file)
@@ -775,7 +775,7 @@ restart:
 
                if (unlikely(nx<0)) {
                        err = nx;
-                       if (err == -EAGAIN && !flags) {
+                       if (err == -EAGAIN && flags) {
                                DECLARE_WAITQUEUE(wait, current);
 
                                add_wait_queue(&km_waitq, &wait);