Skip to content

Commit 514eff7

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: avoid refcount warnings when ds->ops->tag_8021q_vlan_del() fails
This is very similar to the problem and solution from commit 232deb3 ("net: dsa: avoid refcount warnings when ->port_{fdb,mdb}_del returns error"), except for the dsa_port_do_tag_8021q_vlan_del() operation. Fixes: c64b9c0 ("net: dsa: tag_8021q: add proper cross-chip notifier support") Signed-off-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8bf108d commit 514eff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/dsa/tag_8021q.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static int dsa_port_do_tag_8021q_vlan_del(struct dsa_port *dp, u16 vid)
197197

198198
err = ds->ops->tag_8021q_vlan_del(ds, port, vid);
199199
if (err) {
200-
refcount_inc(&v->refcount);
200+
refcount_set(&v->refcount, 1);
201201
return err;
202202
}
203203

0 commit comments

Comments
 (0)