netdev
[Top] [All Lists]

[PATCH] bug in xfrm_lookup [bugzilla 2017]

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH] bug in xfrm_lookup [bugzilla 2017]
From: Krishna Kumar <krkumar@xxxxxxxxxx>
Date: Wed, 4 Feb 2004 17:41:48 -0800 (PST)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20040119211156.4bff1640.davem@redhat.com>
Sender: netdev-bounce@xxxxxxxxxxx
Hi Dave,

One of my earlier patches had a bug in xfrm_lookup() causin schedule()
to get called though MSG_DONTWAIT was specified. I am going to send
the following patch to the bugzilla user who created this bug report
and ask them to test it. I thought I will let you know of this problem
and I will send you a confirmation once I get a response that the problem
is solved.

Thanks,

- KK

diff -ruN linux-2.6.2/net/xfrm/xfrm_policy.c 
linux-2.6.2.new/net/xfrm/xfrm_policy.c
--- linux-2.6.2/net/xfrm/xfrm_policy.c  2004-02-04 17:33:51.000000000 -0800
+++ linux-2.6.2.new/net/xfrm/xfrm_policy.c      2004-02-04 17:34:37.000000000 
-0800
@@ -775,7 +775,7 @@

                if (unlikely(nx<0)) {
                        err = nx;
-                       if (err == -EAGAIN && !flags) {
+                       if (err == -EAGAIN && flags) {
                                DECLARE_WAITQUEUE(wait, current);

                                add_wait_queue(&km_waitq, &wait);


<Prev in Thread] Current Thread [Next in Thread>