kernel_samsung_a53x/drivers/net/phy
Ingo van Lil fba28f12ee net: phy: dp83869: fix memory corruption when enabling fiber
[ Upstream commit a842e443ca8184f2dc82ab307b43a8b38defd6a5 ]

When configuring the fiber port, the DP83869 PHY driver incorrectly
calls linkmode_set_bit() with a bit mask (1 << 10) rather than a bit
number (10). This corrupts some other memory location -- in case of
arm64 the priv pointer in the same structure.

Since the advertising flags are updated from supported at the end of the
function the incorrect line isn't needed at all and can be removed.

Fixes: a29de52ba2a1 ("net: dp83869: Add ability to advertise Fiber connection")
Signed-off-by: Ingo van Lil <inguin@gmx.de>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241002161807.440378-1-inguin@gmx.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:51 +01:00
..
mscc net: phy: mscc: macsec: reject PN update requests 2024-11-08 11:25:46 +01:00
adin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aquantia.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aquantia_hwmon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aquantia_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
at803x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ax88796b.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm-cygnus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm-phy-lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm-phy-lib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm7xxx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm87xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm54140.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm84881.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
broadcom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cicada.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cortina.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davicom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83tc811.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83640.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83640_reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83822.c net: phy: dp83822: Fix RGMII TX delay configuration 2024-11-19 08:44:49 +01:00
dp83848.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83867.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp83869.c net: phy: dp83869: fix memory corruption when enabling fiber 2024-11-23 23:21:51 +01:00
et1011c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fixed_phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
icplus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-xway.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
linkmode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lxt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
marvell10g.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio-boardinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio-boardinfo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio_bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio_device.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mdio_devres.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-gxl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
micrel.c net: phy: micrel: add Microchip KSZ 9477 to the device table 2024-11-19 14:19:31 +01:00
microchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
microchip_t1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mii_timestamper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
national.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nxp-tja11xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-c45.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy_device.c net: phy: fix phy_get_internal_delay accessing an empty array 2024-11-19 08:44:49 +01:00
phy_led_triggers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phylink.c net: phylink: initialize carrier state at creation 2024-11-18 11:43:30 +01:00
qsemi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
realtek.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sfp-bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sfp.c net: sfp: Always call sfp_sm_mod_remove() on remove 2024-11-19 14:19:03 +01:00
sfp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smsc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi_ks8995.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ste10Xp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
swphy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
swphy.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
teranetics.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uPD60620.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vitesse.c net: phy: vitesse: repair vsc73xx autonegotiation 2024-11-23 23:21:10 +01:00
xilinx_gmii2rgmii.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00