Thread (9 messages) 9 messages, 2 authors, 2026-01-27
STALE179d
Revisions (3)
  1. v2 current
  2. v3 [diff vs current]
  3. v4 [diff vs current]

[PATCH net v2 0/2] net: liquidio: Fix memory leaks in setup_nic_devices()

From: Zilin Guan <hidden>
Date: 2026-01-24 12:42:12
Also in: lkml

Patch 1 fixes an off-by-one error in the cleanup loop. Using a do-while 
loop ensures the current device index is also cleaned up.

Patch 2 moves the initialization of oct->props[i].netdev before queue 
setup calls. This ensures that if queue setup fails, the cleanup function 
can find the allocated netdev.

Signed-off-by: Zilin Guan <redacted>

Changes in v2:
- Add patch 1 to fix an off-by-one error in the error handling loop logic.

Zilin Guan (2):
  net: liquidio: Fix off-by-one error in setup_nic_devices() cleanup
  net: liquidio: Initialize netdev pointer before queue setup

 .../net/ethernet/cavium/liquidio/lio_main.c   | 24 +++++++++----------
 .../ethernet/cavium/liquidio/lio_vf_main.c    |  4 ++--
 2 files changed, 14 insertions(+), 14 deletions(-)

-- 
2.34.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help