From: Vladimir Oltean Date: Tue, 14 Dec 2021 01:45:34 +0000 (+0200) Subject: net: dsa: tag_sja1105: fix zeroization of ds->priv on tag proto disconnect X-Git-Tag: v6.6.17~8491^2~197^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2f01bfe1406f82a45ab0ce8ed90dbef1c464502;p=platform%2Fkernel%2Flinux-rpi.git net: dsa: tag_sja1105: fix zeroization of ds->priv on tag proto disconnect 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 Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/net/dsa/tag_sja1105.c b/net/dsa/tag_sja1105.c index 93d2484..b7095a0 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; } }