[Openswan dev] module unload fix

Paul Wouters paul at xelerance.com
Mon Feb 13 18:36:39 CET 2006


On Fri, 10 Feb 2006, Ankit Desai wrote:

>
>  --- ipsec_proc.c.org Fri Feb 10 16:00:46 2006
>  +++ ipsec_proc.c        Fri Feb 10 14:10:42 2006
>  @@ -988,7 +988,7 @@
>                  do {
>                          remove_proc_entry(it->name, *it->parent);
>                          it--;
>  -               } while(it > proc_items);
>  +               } while(it >= proc_items);
>          }

Excellent. I've confirmed this fixes the unload problem on 2.6 kernels, and
will shortly test this on 2.4. Though I had spend an entire day on this
problem in the past, and went through this file extensively, I did not spot
it. Thanks a lot! This bug has been haunting us for a long time.

Paul


More information about the Dev mailing list