aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/package/openswan/patches/100-fix-oops-on-24.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openwrt.org>2006-03-28 23:33:28 +0000
committerWaldemar Brodkorb <wbx@openwrt.org>2006-03-28 23:33:28 +0000
commit59452461fa46ac2fd9858f3c91b93e4cc7b994b5 (patch)
treea36bd4d60f30fda73ba1eee6f524d402cb1fb153 /target/linux/package/openswan/patches/100-fix-oops-on-24.patch
parent0a71ac06e04b0c0cdc6cd6608da3a774694c5904 (diff)
downloadupstream-59452461fa46ac2fd9858f3c91b93e4cc7b994b5.tar.gz
upstream-59452461fa46ac2fd9858f3c91b93e4cc7b994b5.tar.bz2
upstream-59452461fa46ac2fd9858f3c91b93e4cc7b994b5.zip
update openswan to 2.4.5rc5 and fix compile issues
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3535 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/openswan/patches/100-fix-oops-on-24.patch')
-rw-r--r--target/linux/package/openswan/patches/100-fix-oops-on-24.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/package/openswan/patches/100-fix-oops-on-24.patch b/target/linux/package/openswan/patches/100-fix-oops-on-24.patch
new file mode 100644
index 0000000000..0861b0489e
--- /dev/null
+++ b/target/linux/package/openswan/patches/100-fix-oops-on-24.patch
@@ -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;
+ }