[openwrt/openwrt] kernel: fix crash in flow offload code when cleaning up unregistered hooks
LEDE Commits
lede-commits at lists.infradead.org
Sun Feb 25 07:37:14 PST 2018
nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/1ac14d312fc8042ab75abcac4decdb47a77c05f0
commit 1ac14d312fc8042ab75abcac4decdb47a77c05f0
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Feb 25 16:23:07 2018 +0100
kernel: fix crash in flow offload code when cleaning up unregistered hooks
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
.../linux/generic/hack-4.14/650-netfilter-add-xt_OFFLOAD-target.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 e2279fc..40f89d4 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 at nbd.name>
+
+restart:
+ hlist_for_each_entry(hook, &hooks, list) {
-+ if (hook->used)
++ if (hook->used || !hook->registered)
+ continue;
+
+ hlist_del(&hook->list);
More information about the lede-commits
mailing list