diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-12-14 02:45:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-14 13:45:15 +0100 |
commit | e2f01bfe1406f82a45ab0ce8ed90dbef1c464502 (patch) | |
tree | 977f2a438106e84a8fa99d0856cb90be8e85db80 /net/dsa | |
parent | bareudp: Add extack support to bareudp_configure() (diff) | |
download | linux-e2f01bfe1406f82a45ab0ce8ed90dbef1c464502.tar.xz linux-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/dsa')
-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; } } |