diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-12-14 03:45:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-14 12:45:15 +0000 |
commit | e2f01bfe1406f82a45ab0ce8ed90dbef1c464502 (patch) | |
tree | 977f2a438106e84a8fa99d0856cb90be8e85db80 /net | |
parent | b4bffa4ceab1be0e4cc39aa56c0746a63e5d3c6f (diff) | |
download | linux-stable-e2f01bfe1406f82a45ab0ce8ed90dbef1c464502.tar.gz linux-stable-e2f01bfe1406f82a45ab0ce8ed90dbef1c464502.tar.bz2 linux-stable-e2f01bfe1406f82a45ab0ce8ed90dbef1c464502.zip |
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 <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/dsa/tag_sja1105.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |