netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/3] fix xa_alloc_cyclic() return checks
@ 2025-03-12  9:52 Michal Swiatkowski
  2025-03-12  9:52 ` [PATCH net v2 1/3] devlink: fix xa_alloc_cyclic() error handling Michal Swiatkowski
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Michal Swiatkowski @ 2025-03-12  9:52 UTC (permalink / raw)
  To: netdev
  Cc: jiri, davem, edumazet, kuba, pabeni, horms, pierre, hkallweit1,
	linux, maxime.chevallier, christophe.leroy, arkadiusz.kubalewski,
	vadim.fedorenko, Michal Swiatkowski

Pierre Riteau <pierre@stackhpc.com> found suspicious handling an error
from xa_alloc_cyclic() in scheduler code [1]. The same is done in few
other places.

v1 --> v2: [2]
 * add fixes tags
 * fix also the same usage in dpll and phy

[1] https://lore.kernel.org/netdev/20250213223610.320278-1-pierre@stackhpc.com/
[2] https://lore.kernel.org/netdev/20250214132453.4108-1-michal.swiatkowski@linux.intel.com/

Michal Swiatkowski (3):
  devlink: fix xa_alloc_cyclic() error handling
  dpll: fix xa_alloc_cyclic() error handling
  phy: fix xa_alloc_cyclic() error handling

 drivers/dpll/dpll_core.c            | 2 +-
 drivers/net/phy/phy_link_topology.c | 2 +-
 net/devlink/core.c                  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-03-19  9:59 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12  9:52 [PATCH net v2 0/3] fix xa_alloc_cyclic() return checks Michal Swiatkowski
2025-03-12  9:52 ` [PATCH net v2 1/3] devlink: fix xa_alloc_cyclic() error handling Michal Swiatkowski
2025-03-12 13:15   ` Andrew Lunn
2025-03-14 13:33   ` Jiri Pirko
2025-03-12  9:52 ` [PATCH net v2 2/3] dpll: " Michal Swiatkowski
2025-03-12 10:33   ` Vadim Fedorenko
2025-03-12 10:55   ` Kubalewski, Arkadiusz
2025-03-14 13:33   ` Jiri Pirko
2025-03-12  9:52 ` [PATCH net v2 3/3] phy: " Michal Swiatkowski
2025-03-12 11:35   ` Maxime Chevallier
2025-03-14 10:23 ` [PATCH net v2 0/3] fix xa_alloc_cyclic() return checks Dan Carpenter
2025-03-14 12:52   ` Przemek Kitszel
2025-03-14 14:13     ` Dan Carpenter
2025-03-14 14:23     ` Matthew Wilcox
2025-03-17  8:55       ` Przemek Kitszel
2025-03-17 12:24         ` Matthew Wilcox
2025-03-19  8:45           ` Przemek Kitszel
2025-03-19 10:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).