Re: linux-next: powerpc boot failure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: =?ISO-8859-1?Q?Timo_Ter=E4s?=
Date: Thursday, April 8, 2010 - 1:40 am

Stephen Rothwell wrote:

It looks like my new code uses xfrm_pols_put assuming it always does the
proper thing. But seems like it's doing funny stuff if CONFIG_XFRM_SUB_POLICY
is not set, which is your case.

Can you try if this helps?

diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 625dd61..cccb049 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -735,19 +735,12 @@ static inline void xfrm_pol_put(struct xfrm_policy *policy
                xfrm_policy_destroy(policy);
 }
 
-#ifdef CONFIG_XFRM_SUB_POLICY
 static inline void xfrm_pols_put(struct xfrm_policy **pols, int npols)
 {
        int i;
        for (i = npols - 1; i >= 0; --i)
                xfrm_pol_put(pols[i]);
 }
-#else
-static inline void xfrm_pols_put(struct xfrm_policy **pols, int npols)
-{
-       xfrm_pol_put(pols[0]);
-}
-#endif
 
 extern void __xfrm_state_destroy(struct xfrm_state *);
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: powerpc boot failure, Stephen Rothwell, (Wed Apr 7, 11:58 pm)
Re: linux-next: powerpc boot failure, =?ISO-8859-1?Q?Timo_ ..., (Thu Apr 8, 12:11 am)
Re: linux-next: powerpc boot failure, Stephen Rothwell, (Thu Apr 8, 12:23 am)
Re: linux-next: powerpc boot failure, =?ISO-8859-1?Q?Timo_ ..., (Thu Apr 8, 12:29 am)
Re: linux-next: powerpc boot failure, Stephen Rothwell, (Thu Apr 8, 12:45 am)
Re: linux-next: powerpc boot failure, =?ISO-8859-1?Q?Timo_ ..., (Thu Apr 8, 12:48 am)
Re: linux-next: powerpc boot failure, =?ISO-8859-1?Q?Timo_ ..., (Thu Apr 8, 1:40 am)
Re: linux-next: powerpc boot failure, Tony Luck, (Thu Apr 8, 11:55 am)
Re: linux-next: powerpc boot failure, David Miller, (Thu Apr 8, 1:13 pm)
Re: linux-next: powerpc boot failure, Stephen Rothwell, (Thu Apr 8, 5:08 pm)