Skip to contentSkip to conversation

net: bridge: explicitly zero is_sticky in fdb_create

PATCH Applied Nikolay Aleksandrov 2 participants 2 messages Sep 27, 2018 – Sep 28, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: bridge: explicitly zero is_sticky in fdb_create

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")
---
 net/bridge/br_fdb.c | 1 +
 1 file changed, 1 insertion(+)
net/bridge/br_fdb.c +1 -0
index a56ed7f2a3a3..74331690a390 100644
@@ -504,6 +504,7 @@ static struct net_bridge_fdb_entry *fdb_create(struct net_bridge *br,
 		fdb->added_by_user = 0;
 		fdb->added_by_external_learn = 0;
 		fdb->offloaded = 0;
+		fdb->is_sticky = 0;
 		fdb->updated = fdb->used = jiffies;
 		if (rhashtable_lookup_insert_fast(&br->fdb_hash_tbl,
 						  &fdb->rhnode,
Signature · 1 line
2.11.0
maintainer Applied
#1 lore raw

From: Nikolay Aleksandrov <[email protected]>
Date: Thu, 27 Sep 2018 15:05:10 +0300

Quoted 5 lines

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")

Applied, thanks Nikolay.