linux/drivers/net/phy
Michal Swiatkowski 3178d2b048 phy: fix xa_alloc_cyclic() error handling
xa_alloc_cyclic() can return 1, which isn't an error. To prevent
situation when the caller of this function will treat it as no error do
a check only for negative here.

Fixes: 3849687869 ("net: phy: Introduce ethernet link topology representation")
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2025-03-19 09:57:37 +00:00
..
aquantia net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
mediatek net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
mscc net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
qcom net: phy: qcom: qca807x fix condition for DAC_DSP_BIAS_CURRENT 2025-02-20 13:19:35 -08:00
realtek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-01-21 10:24:33 +01:00
Kconfig net: phy: move realtek PHY driver to its own subdirectory 2025-01-14 14:51:32 -08:00
Makefile net: phy: move realtek PHY driver to its own subdirectory 2025-01-14 14:51:32 -08:00
adin.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
adin1100.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
air_en8811h.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
amd.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
ax88796b.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
ax88796b_rust.rs
bcm-cygnus.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
bcm-phy-lib.c net: phy: broadcom: use genphy_c45_an_config_eee_aneg in bcm_config_lre_aneg 2024-11-07 20:31:06 -08:00
bcm-phy-lib.h
bcm-phy-ptp.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
bcm7xxx.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
bcm63xx.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
bcm87xx.c
bcm54140.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
bcm84881.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
broadcom.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
cicada.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
cortina.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
davicom.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83tc811.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83td510.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83tg720.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83640.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83640_reg.h
dp83822.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83848.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83867.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83869.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
et1011c.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
fixed_phy.c
icplus.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
intel-xway.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
linkmode.c
lxt.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
marvell-88q2xxx.c net: phy: marvell-88q2xxx: Fix temperature measurement with reset-gpios 2025-01-23 09:55:06 +01:00
marvell-88x2222.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
marvell.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
marvell10g.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
mdio-boardinfo.c
mdio-boardinfo.h
mdio-open-alliance.h
mdio_bus.c
mdio_device.c
mdio_devres.c
meson-gxl.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
micrel.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
microchip.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
microchip_rds_ptp.c net: phy: microchip_rds_ptp : Add PEROUT feature library for RDS PTP supported Microchip phys 2025-01-16 17:27:57 -08:00
microchip_rds_ptp.h net: phy: microchip_rds_ptp: Header file library changes for PEROUT 2025-01-16 17:27:56 -08:00
microchip_t1.c net: phy: microchip_t1: Enable pin out specific to lan887x phy for PEROUT signal 2025-01-16 17:27:56 -08:00
microchip_t1s.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
mii_timestamper.c
motorcomm.c
mxl-gpy.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
national.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
ncn26000.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
nxp-c45-tja11xx-macsec.c
nxp-c45-tja11xx.c net: phy: nxp-c45-tja11xx: add TJA112XB SGMII PCS restart errata 2025-03-07 19:54:25 -08:00
nxp-c45-tja11xx.h net: phy: c45-tja11xx: add support for outputting RMII reference clock 2024-10-15 10:44:52 +02:00
nxp-cbtx.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
nxp-tja11xx.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
open_alliance_helpers.c
open_alliance_helpers.h
phy-c45.c net: phy: remove genphy_c45_eee_is_active()'s is_enabled arg 2024-12-06 17:47:31 -08:00
phy-core.c net: phy: convert eee_broken_modes to a linkmode bitmap 2024-11-14 18:01:37 -08:00
phy.c net: phy: add support for querying PHY clock stop capability 2025-01-16 17:22:59 -08:00
phy_device.c net: phy: remove leftovers from switch to linkmode bitmaps 2025-01-18 17:40:10 -08:00
phy_led_triggers.c
phy_link_topology.c phy: fix xa_alloc_cyclic() error handling 2025-03-19 09:57:37 +00:00
phylink.c net: phylink: make configuring clock-stop dependent on MAC support 2025-02-11 16:08:34 -08:00
qsemi.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
qt2025.rs net: phy: qt2025: Fix warning: unused import DeviceId 2024-10-02 17:44:00 -07:00
rockchip.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
sfp-bus.c
sfp.c net: sfp: change quirks for Alcatel Lucent G-010S-P 2024-10-21 10:33:22 +02:00
sfp.h
smsc.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
spi_ks8995.c net: phy: ks8995: constify 'struct bin_attribute' 2024-12-17 19:00:44 -08:00
ste10Xp.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
stubs.c
swphy.c
swphy.h
teranetics.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
uPD60620.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
vitesse.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
xilinx_gmii2rgmii.c