netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IPSEC: typo in xfrm_sk_clone_policy()
@ 2003-03-12  7:17 YOSHIFUJI Hideaki / 吉藤英明
  2003-03-12  7:38 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2003-03-12  7:17 UTC (permalink / raw)
  To: davem, kuznet; +Cc: netdev, usagi

Hello.

I think following patch fixes a typo in xfrm_sk_clone_policy()
which results in infinite loop if sk->policy[0] or sk->policy[1] is true.

Patch is for 2.5.64.

Thanks.

Index: include/net/xfrm.h
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/include/net/xfrm.h,v
retrieving revision 1.1.1.7
diff -u -r1.1.1.7 xfrm.h
--- include/net/xfrm.h	16 Feb 2003 04:09:06 -0000	1.1.1.7
+++ include/net/xfrm.h	12 Mar 2003 07:06:20 -0000
@@ -335,7 +335,7 @@
 static inline int xfrm_sk_clone_policy(struct sock *sk)
 {
 	if (unlikely(sk->policy[0] || sk->policy[1]))
-		return xfrm_sk_clone_policy(sk);
+		return __xfrm_sk_clone_policy(sk);
 	return 0;
 }
 

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] IPSEC: typo in xfrm_sk_clone_policy()
  2003-03-12  7:17 [PATCH] IPSEC: typo in xfrm_sk_clone_policy() YOSHIFUJI Hideaki / 吉藤英明
@ 2003-03-12  7:38 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-03-12  7:38 UTC (permalink / raw)
  To: yoshfuji; +Cc: kuznet, netdev, usagi

   From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
   Date: Wed, 12 Mar 2003 16:17:49 +0900 (JST)

   I think following patch fixes a typo in xfrm_sk_clone_policy()
   which results in infinite loop if sk->policy[0] or sk->policy[1] is true.
   
   Patch is for 2.5.64.

Patch applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-12  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-12  7:17 [PATCH] IPSEC: typo in xfrm_sk_clone_policy() YOSHIFUJI Hideaki / 吉藤英明
2003-03-12  7:38 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).