mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-24 07:57:11 +00:00
The lan966x->ports[] array has lan966x->num_phys_ports elements. These
are assigned in lan966x_probe(). That means the > comparison should be
changed to >=.
The first off by one check is harmless but the second one could lead to
an out of bounds access and a crash.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| lan966x_ethtool.c | ||
| lan966x_fdb.c | ||
| lan966x_ifh.h | ||
| lan966x_mac.c | ||
| lan966x_main.c | ||
| lan966x_main.h | ||
| lan966x_mdb.c | ||
| lan966x_phylink.c | ||
| lan966x_port.c | ||
| lan966x_ptp.c | ||
| lan966x_regs.h | ||
| lan966x_switchdev.c | ||
| lan966x_vlan.c | ||
| Makefile | ||