kernel: fix RCU issue in xt_FLOWOFFLOAD patch
[openwrt/staging/nbd.git] / target / linux / generic / hack-5.10 / 650-netfilter-add-xt_FLOWOFFLOAD-target.patch
index 77c24ccc7a75271707e0908d8536badb31d7744d..bda8d06b7caf49584206bbf4f6a747309f481847 100644 (file)
@@ -98,7 +98,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  obj-$(CONFIG_NETFILTER_XT_TARGET_LED) += xt_LED.o
 --- /dev/null
 +++ b/net/netfilter/xt_FLOWOFFLOAD.c
-@@ -0,0 +1,658 @@
+@@ -0,0 +1,656 @@
 +/*
 + * Copyright (C) 2018-2021 Felix Fietkau <nbd@nbd.name>
 + *
@@ -278,8 +278,6 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 +              hook->used = true;
 +      }
 +      spin_unlock_bh(&hooks_lock);
-+
-+      cond_resched();
 +}
 +
 +static void