linux/drivers/net/ethernet/microchip
Dan Carpenter 9810c58c70 net: lan966x: fix a couple off by one bugs
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: 5ccd66e01c ("net: lan966x: add support for interrupts from analyzer")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-04-25 11:25:37 +01:00
..
lan966x net: lan966x: fix a couple off by one bugs 2022-04-25 11:25:37 +01:00
sparx5 net: sparx5: uses, depends on BRIDGE or !BRIDGE 2022-03-30 19:16:27 -07:00
enc28j60_hw.h
enc28j60.c net: ethernet: Use netif_rx(). 2022-03-04 12:02:19 +00:00
encx24j600_hw.h
encx24j600-regmap.c
encx24j600.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
Kconfig net: lan966x: add the basic lan966x driver 2021-11-29 12:58:38 +00:00
lan743x_ethtool.c net: lan743x: Add support for OTP 2022-03-18 12:53:23 +00:00
lan743x_ethtool.h
lan743x_main.c net: lan743x: Add support for EEPROM 2022-03-18 12:53:23 +00:00
lan743x_main.h net: lan743x: Add support for PTP-IO Event Output (Periodic Output) 2022-03-18 12:53:23 +00:00
lan743x_ptp.c net: lan743x: Add support for PTP-IO Event Output (Periodic Output) 2022-03-18 12:53:23 +00:00
lan743x_ptp.h net: lan743x: Add support for PTP-IO Event Output (Periodic Output) 2022-03-18 12:53:23 +00:00
Makefile net: lan966x: add the basic lan966x driver 2021-11-29 12:58:38 +00:00