summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/realtek-smi-core.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-09-02 00:09:34 +0200
committerDavid S. Miller <davem@davemloft.net>2020-09-02 14:13:35 -0700
commit6641a2c42b0a307b7638d10e5d4b90debc61389d (patch)
tree4c1460cff0a78e2bf71f19df4f54fecb12214cb8 /drivers/net/dsa/realtek-smi-core.h
parentc6f4c2b027c471838f44de03ef8c4100e4986852 (diff)
downloadlinux-6641a2c42b0a307b7638d10e5d4b90debc61389d.tar.gz
linux-6641a2c42b0a307b7638d10e5d4b90debc61389d.tar.bz2
linux-6641a2c42b0a307b7638d10e5d4b90debc61389d.zip
net: dsa: rtl8366: Check validity of passed VLANs
The rtl8366_set_vlan() and rtl8366_set_pvid() get invalid VLANs tossed at it, especially VLAN0, something the hardware and driver cannot handle. Check validity and bail out like we do in the other callbacks. 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>
Diffstat (limited to 'drivers/net/dsa/realtek-smi-core.h')
0 files changed, 0 insertions, 0 deletions