4.19-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nikolay Aleksandrov nikolay@cumulusnetworks.com
commit 1288aa7af20cfa25cb00cf0d77f94d1891644c83 upstream.
We need to explicitly zero is_sticky when creating a new fdb, otherwise we might get a stale value for a new entry.
Fixes: 435f2e7cc0b7 ("net: bridge: add support for sticky fdb entries") Signed-off-by: Nikolay Aleksandrov nikolay@cumulusnetworks.com Signed-off-by: David S. Miller davem@davemloft.net Signed-off-by: Greg Kroah-Hartman gregkh@linuxfoundation.org --- net/bridge/br_fdb.c | 1 + 1 file changed, 1 insertion(+)
--- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c @@ -512,6 +512,7 @@ static struct net_bridge_fdb_entry *fdb_ if (is_static) set_bit(BR_FDB_STATIC, &fdb->flags); fdb->offloaded = 0; + fdb->is_sticky = 0; fdb->updated = fdb->used = jiffies; if (rhashtable_lookup_insert_fast(&br->fdb_hash_tbl, &fdb->rhnode,