[Openswan dev] patch for issue id 0000563: Error when unload ipsec.ko module "rmmod ipsec"

Ankit Desai ankit at elitecore.com
Fri Feb 10 16:02:02 CET 2006


hi,
I was testing openswan-2.5.4-rc4 klips with linux kernel 2.6.15.1 and was
facing the above problem.
As the oops suggest the problem was faced when removing ipsec modules. It
was not able to clean the proc entries.
Here is a patch that resolved my problem...

<---snip--->

--- ipsec.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);
        }

<---snip--->

-- Ankit Desai




More information about the Dev mailing list