Commit e2f01bfe authored by Vladimir Oltean's avatar Vladimir Oltean Committed by David S. Miller

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: c79e8486 ("net: dsa: tag_sja1105: convert to tagger-owned data")
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4bffa4c
...@@ -756,7 +756,7 @@ static void sja1105_disconnect(struct dsa_switch_tree *dst) ...@@ -756,7 +756,7 @@ static void sja1105_disconnect(struct dsa_switch_tree *dst)
kthread_destroy_worker(priv->xmit_worker); kthread_destroy_worker(priv->xmit_worker);
kfree(priv); kfree(priv);
dp->ds->priv = NULL; dp->ds->tagger_data = NULL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment