linux/drivers/net/dsa
Dan Carpenter 8e9205fa36 net: dsa: b53: fix an off by one in checking "vlan->vid"
commit 8e4052c32d upstream.

The > comparison should be >= to prevent accessing one element beyond
the end of the dev->vlans[] array in the caller function, b53_vlan_add().
The "dev->vlans" array is allocated in the b53_switch_init() function
and it has "dev->num_vlans" elements.

Fixes: a2482d2ce3 ("net: dsa: b53: Plug in VLAN support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/YAbxI97Dl/pmBy5V@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-27 11:05:44 +01:00
..
b53 net: dsa: b53: fix an off by one in checking "vlan->vid" 2021-01-27 11:05:44 +01:00
microchip
mv88e6xxx net: dsa: mv88e6xxx: Avoid VTU corruption on 6097 2020-11-24 13:27:17 +01:00
bcm_sf2_cfp.c
bcm_sf2_regs.h
bcm_sf2.c
bcm_sf2.h
dsa_loop_bdinfo.c
dsa_loop.c
dsa_loop.h
Kconfig
lan9303_i2c.c
lan9303_mdio.c
lan9303-core.c
lan9303.h
Makefile
mt7530.c
mt7530.h
mv88e6060.c
mv88e6060.h
qca8k.c
qca8k.h
realtek-smi.c
realtek-smi.h net: dsa: rtl8366: Refactor VLAN/PVID init 2020-10-29 09:55:10 +01:00
rtl8366.c net: dsa: rtl8366: Skip PVID setting if not requested 2020-10-29 09:55:11 +01:00
rtl8366rb.c net: dsa: rtl8366rb: Support all 4096 VLANs 2020-10-29 09:55:11 +01:00
vitesse-vsc73xx.c