[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071213052516.GA2134@gondor.apana.org.au>
Date: Thu, 13 Dec 2007 13:25:16 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: [DECNET]: Fix inverted wait flag in xfrm_lookup call
On Wed, Dec 12, 2007 at 06:49:19PM -0800, David Miller wrote:
> From: Herbert Xu <herbert@...dor.apana.org.au>
> Date: Thu, 13 Dec 2007 09:46:23 +0800
>
> > [IPSEC]: Make callers of xfrm_lookup to use XFRM_LOOKUP_WAIT
Sorry, I was too quick too :) I managed to invert the DECNet
xfrm_lookup call. Here's a fix.
[DECNET]: Fix inverted wait flag in xfrm_lookup call
My previous patch made the wait flag take the opposite value to what it
should be. This patch fixes that.
Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 62f3ae7..2d95cf1 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -1197,7 +1197,7 @@ 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) ?
- XFRM_LOOKUP_WAIT : 0);
+ 0 : XFRM_LOOKUP_WAIT);
}
return err;
}
Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists