mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Zheng Qixing <zhengqixing@huaweicloud.com>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
	 yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com,
	 zhengqixing@huawei.com
Subject: Re: [PATCH] block: fix resource leak in blk_register_queue() error path
Date: Mon, 14 Apr 2025 08:48:11 -0600	[thread overview]
Message-ID: <174464209120.57766.16774504976430724922.b4-ty@kernel.dk> (raw)
In-Reply-To: <20250412092554.475218-1-zhengqixing@huaweicloud.com>


On Sat, 12 Apr 2025 17:25:54 +0800, Zheng Qixing wrote:
> When registering a queue fails after blk_mq_sysfs_register() is
> successful but the function later encounters an error, we need
> to clean up the blk_mq_sysfs resources.
> 
> Add the missing blk_mq_sysfs_unregister() call in the error path
> to properly clean up these resources and prevent a memory leak.
> 
> [...]

Applied, thanks!

[1/1] block: fix resource leak in blk_register_queue() error path
      commit: 40f2eb9b531475dd01b683fdaf61ca3cfd03a51e

Best regards,
-- 
Jens Axboe




      parent reply	other threads:[~2025-04-14 14:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-12  9:25 Zheng Qixing
2025-04-14  2:58 ` Yu Kuai
2025-04-14  6:28 ` Christoph Hellwig
2025-04-14 14:48 ` Jens Axboe [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=174464209120.57766.16774504976430724922.b4-ty@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yangerkun@huawei.com \
    --cc=yi.zhang@huawei.com \
    --cc=yukuai3@huawei.com \
    --cc=zhengqixing@huawei.com \
    --cc=zhengqixing@huaweicloud.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

all inboxes | Powered by JetHome®