[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260124124205.102499-1-zilin@seu.edu.cn>
Date: Sat, 24 Jan 2026 12:42:03 +0000
From: Zilin Guan <zilin@....edu.cn>
To: andrew+netdev@...n.ch
Cc: davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
marco.crivellari@...e.com,
vadim.fedorenko@...ux.dev,
kory.maincent@...tlin.com,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
horms@...nel.org,
jianhao.xu@....edu.cn,
Zilin Guan <zilin@....edu.cn>
Subject: [PATCH net v2 0/2] net: liquidio: Fix memory leaks in setup_nic_devices()
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 <zilin@....edu.cn>
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
Powered by blists - more mailing lists