aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2019-11-23 17:10:09 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2019-11-23 17:31:52 +0000
commit8f6debf633dbd0622719598a34c75b8435cdfe52 (patch)
treea8b587e0a57afe49c9a804ba4fd53376879f5f39 /target
parent72ddeffc0922aa469150bd32c8ce98ce4725a557 (diff)
downloadupstream-8f6debf633dbd0622719598a34c75b8435cdfe52.tar.gz
upstream-8f6debf633dbd0622719598a34c75b8435cdfe52.tar.bz2
upstream-8f6debf633dbd0622719598a34c75b8435cdfe52.zip
kernel: nf_conntrack_rtcache: fix WARNING on forward path
Fixes b7c58a1ee ("kernel: nf_conntrack_rtcache: fix cleanup on netns delete and rmmod") Resolves FS#2624 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> (cherry picked from commit 1c5df850a07690451f2878a310c0ea67d0690836)
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/backport-4.14/020-backport_netfilter_rtcache.patch12
1 files changed, 1 insertions, 11 deletions
diff --git a/target/linux/generic/backport-4.14/020-backport_netfilter_rtcache.patch b/target/linux/generic/backport-4.14/020-backport_netfilter_rtcache.patch
index d745a97026..37fd203d50 100644
--- a/target/linux/generic/backport-4.14/020-backport_netfilter_rtcache.patch
+++ b/target/linux/generic/backport-4.14/020-backport_netfilter_rtcache.patch
@@ -127,7 +127,7 @@ Signed-off-by: Florian Westphal <fw@strlen.de>
# netlink interface for nf_conntrack
--- /dev/null
+++ b/net/netfilter/nf_conntrack_rtcache.c
-@@ -0,0 +1,440 @@
+@@ -0,0 +1,430 @@
+/* route cache for netfilter.
+ *
+ * (C) 2014 Red Hat GmbH
@@ -475,18 +475,8 @@ Signed-off-by: Florian Westphal <fw@strlen.de>
+ return ret;
+ }
+
-+ ret = nf_register_net_hooks(&init_net, rtcache_ops,
-+ ARRAY_SIZE(rtcache_ops));
-+ if (ret < 0) {
-+ nf_ct_extend_unregister(&rtcache_extend);
-+ unregister_pernet_subsys(&rtcache_ops_net_ops);
-+ return ret;
-+ }
-+
+ ret = register_netdevice_notifier(&nf_rtcache_notifier);
+ if (ret) {
-+ nf_unregister_net_hooks(&init_net, rtcache_ops,
-+ ARRAY_SIZE(rtcache_ops));
+ nf_ct_extend_unregister(&rtcache_extend);
+ unregister_pernet_subsys(&rtcache_ops_net_ops);
+ }