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: c79e84866d ("net: dsa: tag_sja1105: convert to tagger-owned data")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Vladimir Oltean 2021-12-14 03:45:34 +02:00 committed by David S. Miller
parent b4bffa4cea
commit e2f01bfe14

View File

@ -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;
}
}