mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
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:
|
||
|---|---|---|
| .. | ||
| b53_common.c | ||
| b53_mdio.c | ||
| b53_mmap.c | ||
| b53_priv.h | ||
| b53_regs.h | ||
| b53_serdes.c | ||
| b53_serdes.h | ||
| b53_spi.c | ||
| b53_srab.c | ||
| Kconfig | ||
| Makefile | ||