diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-06 13:41:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-06 13:41:44 +0000 |
commit | 72cefb41c7b32cb26e040e144a1a8fb90c65e370 (patch) | |
tree | 20a5b0716348ce41b6a2660f87a9c383561b1a7b /main/linux-grsec/xfrm-fix-policy-unreferencing-on-larval-drop.patch | |
parent | 692ff74b5435bbd20dfc3b7504319e655433195a (diff) | |
download | aports-72cefb41c7b32cb26e040e144a1a8fb90c65e370.tar.bz2 aports-72cefb41c7b32cb26e040e144a1a8fb90c65e370.tar.xz |
main/linux-grsec: fix kernel oops when restarting racoon
Diffstat (limited to 'main/linux-grsec/xfrm-fix-policy-unreferencing-on-larval-drop.patch')
-rw-r--r-- | main/linux-grsec/xfrm-fix-policy-unreferencing-on-larval-drop.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/main/linux-grsec/xfrm-fix-policy-unreferencing-on-larval-drop.patch b/main/linux-grsec/xfrm-fix-policy-unreferencing-on-larval-drop.patch new file mode 100644 index 000000000..25dc0dcdc --- /dev/null +++ b/main/linux-grsec/xfrm-fix-policy-unreferencing-on-larval-drop.patch @@ -0,0 +1,14 @@ +diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c +index 31f4ba4..f4ea3a0 100644 +--- a/net/xfrm/xfrm_policy.c ++++ b/net/xfrm/xfrm_policy.c +@@ -1805,7 +1805,7 @@ restart: + /* EREMOTE tells the caller to generate + * a one-shot blackhole route. */ + dst_release(dst); +- xfrm_pols_put(pols, num_pols); ++ xfrm_pols_put(pols, drop_pols); + XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTNOSTATES); + return -EREMOTE; + } + |