[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081201050046.GB18292@gondor.apana.org.au>
Date: Mon, 1 Dec 2008 13:00:46 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Wei Yongjun <yjwei@...fujitsu.com>
Cc: David Miller <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCHv2] xfrm: Fix kernel panic when flush and dump SPD
entries
On Mon, Dec 01, 2008 at 10:10:16AM +0800, Wei Yongjun wrote:
>
> diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
> index 058f04f..fb216c9 100644
> --- a/net/xfrm/xfrm_policy.c
> +++ b/net/xfrm/xfrm_policy.c
> @@ -817,6 +817,7 @@ int xfrm_policy_flush(u8 type, struct xfrm_audit *audit_info)
> continue;
> hlist_del(&pol->bydst);
> hlist_del(&pol->byidx);
> + list_del(&pol->walk.all);
Good catch. In fact there so man occurrences of these three calls
that perhaps we should put them (and any other relevant code) in a
helper.
Cheers,
--
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