From: Kory Maincent <kory.maincent@bootlin.com>
To: Zilin Guan <zilin@seu.edu.cn>
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, horms@kernel.org,
jianhao.xu@seu.edu.cn, marco.crivellari@suse.com,
vadim.fedorenko@linux.dev
Subject: Re: [PATCH net v4 0/3] net: liquidio: Fix memory leaks in setup_nic_devices()
Date: Wed, 28 Jan 2026 16:54:23 +0100 [thread overview]
Message-ID: <20260128165423.0e1b0cab@kmaincent-XPS-13-7390> (raw)
In-Reply-To: <20260128154440.278369-1-zilin@seu.edu.cn>
On Wed, 28 Jan 2026 15:44:37 +0000
Zilin Guan <zilin@seu.edu.cn> 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
next prev parent reply other threads:[~2026-01-28 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-28 15:44 [PATCH net v4 0/3] net: liquidio: Fix memory leaks in setup_nic_devices() Zilin Guan
2026-01-28 15:44 ` [PATCH net v4 1/3] net: liquidio: Initialize netdev pointer before queue setup Zilin Guan
2026-01-28 15:44 ` [PATCH net v4 2/3] net: liquidio: Fix off-by-one error in PF setup_nic_devices() cleanup Zilin Guan
2026-01-28 15:44 ` [PATCH net v4 3/3] net: liquidio: Fix off-by-one error in VF " Zilin Guan
2026-01-28 15:54 ` Kory Maincent [this message]
2026-01-30 3:40 ` [PATCH net v4 0/3] net: liquidio: Fix memory leaks in setup_nic_devices() patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260128165423.0e1b0cab@kmaincent-XPS-13-7390 \
--to=kory.maincent@bootlin.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jianhao.xu@seu.edu.cn \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marco.crivellari@suse.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vadim.fedorenko@linux.dev \
--cc=zilin@seu.edu.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox