public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Wentao Liang <Wentao_liang_g@163.com>
Cc: shannon.nelson@amd.com, brett.creeley@amd.com,
	davem@davemloft.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ionic: fix memory leak in ionic_probe
Date: Tue, 5 Nov 2024 15:44:09 -0800	[thread overview]
Message-ID: <20241105154409.62e5afd2@kernel.org> (raw)
In-Reply-To: <20241105053433.1614-1-Wentao_liang_g@163.com>

On Tue,  5 Nov 2024 13:34:33 +0800 Wentao Liang wrote:
> In line 334, the ionic_setup_one() creates a debugfs entry for
> ionic upon successful execution. However, the ionic_probe() does
> not release the dentry before returning, resulting in a memory
> leak. To fix this bug, we add the ionic_debugfs_del_dev() before
> line 397 to release the resources before the function returns.

If you haven't reposed yet please make sure you CC netdev@ on v2

      parent reply	other threads:[~2024-11-05 23:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-05  5:34 [PATCH] ionic: fix memory leak in ionic_probe Wentao Liang
2024-11-05 17:56 ` Nelson, Shannon
2024-11-05 23:44 ` Jakub Kicinski [this message]

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=20241105154409.62e5afd2@kernel.org \
    --to=kuba@kernel.org \
    --cc=Wentao_liang_g@163.com \
    --cc=brett.creeley@amd.com \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shannon.nelson@amd.com \
    /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