Thread (6 messages) 6 messages, 3 authors, 2026-01-30

Re: [PATCH net v4 0/3] net: liquidio: Fix memory leaks in setup_nic_devices()

From: Kory Maincent <kory.maincent@bootlin.com>
Date: 2026-01-28 15:54:31
Also in: lkml

On Wed, 28 Jan 2026 15:44:37 +0000
Zilin Guan [off-list ref] wrote:
This series fixes memory leaks in the initialization paths of the 
NIC devices.

Patch 1 moves the initialization of oct->props[i].netdev before queue 
setup calls. This ensures that if queue setup fails, the cleanup function 
can find and free the allocated netdev. It also initializes lio->oct_dev 
early to prevent a crash in the cleanup path.

Patch 2 fixes an off-by-one error in the PF cleanup loop. It ensures
the current device index is cleaned up and correctly handles the 
post-loop devlink_alloc failure case.

Patch 3 fixes the same off-by-one error in the VF cleanup loop.
For the series:
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>

Thank you!
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help