Thread (7 messages) 7 messages, 3 authors, 2021-12-14

[PATCH net-next 1/3] net: dsa: tag_sja1105: fix zeroization of ds->priv on tag proto disconnect

flat view
STALE1767d

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2021-12-14 01:45:53
Subsystem: networking [dsa], networking [general], the rest · Maintainers: Andrew Lunn, Vladimir Oltean, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

The method was meant to zeroize ds->tagger_data but got the wrong
pointer. Fix this.

Fixes: c79e84866d2a ("net: dsa: tag_sja1105: convert to tagger-owned data")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 net/dsa/tag_sja1105.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/dsa/tag_sja1105.c b/net/dsa/tag_sja1105.c
index 93d2484b2480..b7095a033fc4 100644
--- a/net/dsa/tag_sja1105.c
+++ b/net/dsa/tag_sja1105.c
@@ -756,7 +756,7 @@ static void sja1105_disconnect(struct dsa_switch_tree *dst)
 			kthread_destroy_worker(priv->xmit_worker);
 
 		kfree(priv);
-		dp->ds->priv = NULL;
+		dp->ds->tagger_data = NULL;
 	}
 }
 
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help