diff options
| author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-12-25 04:08:13 +0000 |
|---|---|---|
| committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-12-25 04:08:13 +0000 |
| commit | 912e59f77dc6b90b457cd3600e2161052ae96e36 (patch) | |
| tree | 040b884a0b1e954d0e0fc64449fb8efced0f2de9 /openwrt/target/linux/package/openswan/patches/fix-oops-on-24.patch | |
| parent | 54c4cb90875b1ef881210e9ba85b2dc0495bc2a8 (diff) | |
| download | mtk-20170518-912e59f77dc6b90b457cd3600e2161052ae96e36.zip mtk-20170518-912e59f77dc6b90b457cd3600e2161052ae96e36.tar.gz mtk-20170518-912e59f77dc6b90b457cd3600e2161052ae96e36.tar.bz2 | |
fix oops on start, forgot to ifdef one call last time, closes #133
SVN-Revision: 2769
Diffstat (limited to 'openwrt/target/linux/package/openswan/patches/fix-oops-on-24.patch')
| -rw-r--r-- | openwrt/target/linux/package/openswan/patches/fix-oops-on-24.patch | 23 |
1 files changed, 23 insertions, 0 deletions
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 index 0000000..0861b04 --- /dev/null +++ b/openwrt/target/linux/package/openswan/patches/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; + } |
