Files
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
..
2025-01-14 15:01:32 -08:00
2021-09-14 20:03:24 -07:00
2025-01-14 15:01:32 -08:00