linux/drivers/net/dsa
Dan Carpenter 8e4052c32d net: dsa: b53: fix an off by one in checking "vlan->vid"
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>
2021-01-19 19:34:49 -08:00
..
b53 net: dsa: b53: fix an off by one in checking "vlan->vid" 2021-01-19 19:34:49 -08:00
hirschmann net: dsa: fix led_classdev build errors 2021-01-06 16:17:14 -08:00
microchip net: dsa: microchip: ksz8795: use num_vlans where possible 2020-12-02 17:16:29 -08:00
mv88e6xxx net: dsa: mv88e6xxx: also read STU state in mv88e6250_g1_vtu_getnext 2021-01-18 13:04:28 -08:00
ocelot Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-11 22:29:38 -08:00
qca net: dsa: qca: ar9331: fix sleeping function called from invalid context bug 2020-12-16 10:57:35 -08:00
sja1105
bcm_sf2.c
bcm_sf2.h
bcm_sf2_cfp.c
bcm_sf2_regs.h
dsa_loop.c
dsa_loop.h
dsa_loop_bdinfo.c
Kconfig
lan9303-core.c
lan9303.h
lan9303_i2c.c
lan9303_mdio.c
lantiq_gswip.c net: dsa: lantiq_gswip: Exclude RMII from modes that report 1 GbE 2021-01-07 19:00:11 -08:00
lantiq_pce.h
Makefile
mt7530.c net: dsa: mt7530: enable MTU normalization 2020-12-12 15:00:56 -08:00
mt7530.h
mv88e6060.c
mv88e6060.h
qca8k.c
qca8k.h
realtek-smi-core.c
realtek-smi-core.h
rtl8366.c net: dsa: simplify the return rtl8366_vlan_prepare() 2020-12-09 17:05:37 -08:00
rtl8366rb.c
vitesse-vsc73xx-core.c
vitesse-vsc73xx-platform.c
vitesse-vsc73xx-spi.c
vitesse-vsc73xx.h