fix oops on start, forgot to ifdef one call last time, closes #133
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Sun, 25 Dec 2005 04:08:13 +0000 (04:08 +0000)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Sun, 25 Dec 2005 04:08:13 +0000 (04:08 +0000)
SVN-Revision: 2769

openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch [deleted file]
openwrt/target/linux/package/openswan/patches/fix-oops-on-24.patch [new file with mode: 0644]

diff --git a/openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch b/openwrt/target/linux/package/openswan/patches/fix-compile-pfkey.patch
deleted file mode 100644 (file)
index 0a0ece3..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -Nur openswan-2.4.0.orig/linux/net/ipsec/pfkey_v2.c openswan-2.4.0/linux/net/ipsec/pfkey_v2.c
---- openswan-2.4.0.orig/linux/net/ipsec/pfkey_v2.c     2005-09-06 04:10:03.000000000 +0200
-+++ openswan-2.4.0/linux/net/ipsec/pfkey_v2.c  2005-09-21 09:32:49.214628750 +0200
-@@ -821,7 +821,9 @@
-               return 0; /* -EINVAL; */
-       }
-+#ifdef NET_26
-       write_lock_bh(&pfkey_sock_lock);
-+#endif
-       KLIPS_PRINT(debug_pfkey,
-                   "klips_debug:pfkey_release: "
diff --git a/openwrt/target/linux/package/openswan/patches/fix-oops-on-24.patch b/openwrt/target/linux/package/openswan/patches/fix-oops-on-24.patch
new file mode 100644 (file)
index 0000000..0861b04
--- /dev/null
@@ -0,0 +1,23 @@
+diff -Nur openswan-2.4.4/linux/net/ipsec/pfkey_v2.c openswan-2.4.4.patched/linux/net/ipsec/pfkey_v2.c
+--- openswan-2.4.4/linux/net/ipsec/pfkey_v2.c  2005-09-14 18:40:45.000000000 +0200
++++ openswan-2.4.4.patched/linux/net/ipsec/pfkey_v2.c  2005-12-25 04:35:57.674968000 +0100
+@@ -820,7 +820,9 @@
+               return 0; /* -EINVAL; */
+       }
++#ifdef NET_26
+       write_lock_bh(&pfkey_sock_lock);
++#endif
+       KLIPS_PRINT(debug_pfkey,
+                   "klips_debug:pfkey_release: "
+@@ -851,7 +853,9 @@
+                   "klips_debug:pfkey_release: "
+                   "succeeded.\n");
++#ifdef NET_26
+       write_unlock_bh(&pfkey_sock_lock);
++#endif
+       return 0;
+ }