mirror of
https://github.com/openwrt/openwrt.git
synced 2026-12-05 04:26:13 +04:00
kernel: fix crash in flow offload code when cleaning up unregistered hooks
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
1 parent
28a74f3076
commit
1ac14d312f
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user