aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-02-25 16:23:07 +0100
committerFelix Fietkau <nbd@nbd.name>2018-02-25 16:24:23 +0100
commit1ac14d312fc8042ab75abcac4decdb47a77c05f0 (patch)
tree008d6f2e6ee948808b4cd064551edb41381050fb /target/linux/generic
parent28a74f3076aac44f470860332a599f0a15d86687 (diff)
downloadupstream-1ac14d312fc8042ab75abcac4decdb47a77c05f0.tar.gz
upstream-1ac14d312fc8042ab75abcac4decdb47a77c05f0.tar.bz2
upstream-1ac14d312fc8042ab75abcac4decdb47a77c05f0.zip
kernel: fix crash in flow offload code when cleaning up unregistered hooks
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/hack-4.14/650-netfilter-add-xt_OFFLOAD-target.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/hack-4.14/650-netfilter-add-xt_OFFLOAD-target.patch b/target/linux/generic/hack-4.14/650-netfilter-add-xt_OFFLOAD-target.patch
index e2279fce65..40f89d4d91 100644
--- a/target/linux/generic/hack-4.14/650-netfilter-add-xt_OFFLOAD-target.patch
+++ b/target/linux/generic/hack-4.14/650-netfilter-add-xt_OFFLOAD-target.patch
@@ -216,7 +216,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
+
+restart:
+ hlist_for_each_entry(hook, &hooks, list) {
-+ if (hook->used)
++ if (hook->used || !hook->registered)
+ continue;
+
+ hlist_del(&hook->list);