[RHEL7,COMMIT] netfilter: conntrack: fix false-positive compiler warning in early_drop()

Submitted by Konstantin Khorenko on May 22, 2020, 10:34 a.m.

Details

Message ID 202005221034.04MAYMHv030017@finist-ce7.sw.ru
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 1c8223e006b18..1d4c20e241dc7 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -900,6 +900,7 @@  static noinline int early_drop(struct net *net, unsigned int hash)
 	bool ret = false;
 
 	i = 0;
+	bucket = 0; /* compiler false-positive warning workaround */
 
 	local_bh_disable();
 restart: