Skip to content

Commit

Permalink
net: dsa: tag_sja1105: fix zeroization of ds->priv on tag proto disco…
Browse files Browse the repository at this point in the history
…nnect

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

Fixes: c79e848 ("net: dsa: tag_sja1105: convert to tagger-owned data")
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
vladimiroltean authored and davem330 committed Dec 14, 2021
1 parent b4bffa4 commit e2f01bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dsa/tag_sja1105.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit e2f01bf

Please sign in to comment.