linux-stable/drivers/net/pcs
Russell King (Oracle) 43fb622d91 net: pcs: xpcs: fix incorrect number of interfaces
In synopsys_xpcs_compat[], the DW_XPCS_2500BASEX entry was setting
the number of interfaces using the xpcs_2500basex_features array
rather than xpcs_2500basex_interfaces. This causes us to overflow
the array of interfaces. Fix this.

Fixes: f27abde304 ("net: pcs: add 2500BASEX support for Intel mGbE controller")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-05-10 10:25:02 +01:00
..
Kconfig net: pcs: add driver for MediaTek SGMII PCS 2023-03-20 19:48:26 -07:00
Makefile net: pcs: add driver for MediaTek SGMII PCS 2023-03-20 19:48:26 -07:00
pcs-altera-tse.c net: pcs: altera-tse: remove unnecessary register definitions 2022-11-29 20:29:55 -08:00
pcs-lynx.c net: pcs: lynx: don't print an_enabled in pcs_get_state() 2023-03-17 08:19:03 +00:00
pcs-mtk-lynxi.c net: pcs: add driver for MediaTek SGMII PCS 2023-03-20 19:48:26 -07:00
pcs-rzn1-miic.c net: pcs: rzn1-miic: remove unused struct members and use miic variable 2023-02-09 22:47:16 -08:00
pcs-xpcs-nxp.c net: update NXP copyright text 2021-09-17 13:52:17 +01:00
pcs-xpcs.c net: pcs: xpcs: fix incorrect number of interfaces 2023-05-10 10:25:02 +01:00
pcs-xpcs.h net: pcs: xpcs: add CL37 1000BASE-X AN support 2022-06-17 10:55:35 +01:00