diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-09-26 01:59:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-18 21:16:26 +0300 |
commit | 739b92765e0463cbb612d8e0efe3ac0fab70cafb (patch) | |
tree | bda283e5ccf230898f09fccacf39e1f5d8882382 /lib | |
parent | 57e4d980b7fe9da03b1a95ad8e3752d37b5e6278 (diff) | |
download | linux-739b92765e0463cbb612d8e0efe3ac0fab70cafb.tar.xz |
net: dsa: rtl8366: Fix a bug in deleting VLANs
[ Upstream commit d8251b9db34a2cbc5619b610e7e8aad1d165c531 ]
We were checking that the MC (member config) was != 0
for some reason, all we need to check is that the config
has no ports, i.e. no members. Then it can be recycled.
This must be some misunderstanding.
Fixes: 4ddcaf1ebb5e ("net: dsa: rtl8366: Properly clear member config")
Cc: Mauri Sandberg <sandberg@mailfence.com>
Cc: DENG Qingfang <dqfext@gmail.com>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions