From: Sasha Levin <sashal@kernel.org>
To: Robert Garcia <rob_garcia@163.com>
Cc: Sasha Levin <sashal@kernel.org>,
stable@vger.kernel.org, Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH 5.15.y] block: fix resource leak in blk_register_queue() error path
Date: Mon, 13 Apr 2026 00:14:05 -0400 [thread overview]
Message-ID: <20260412120103.block-blk-register-queue@kernel.org> (raw)
In-Reply-To: <20260409063616.117503-1-rob_garcia@163.com>
> [PATCH 5.15.y] block: fix resource leak in blk_register_queue()
> error path
This patch places blk_mq_sysfs_unregister(q) on the success path (after
kobject_uevent, before 'ret = 0') rather than on the error path. As written,
this would unregister sysfs on every successful blk_register_queue() call,
breaking block device initialization.
prev parent reply other threads:[~2026-04-13 4:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 6:36 [PATCH 5.15.y] block: fix resource leak in blk_register_queue() error path Robert Garcia
2026-04-13 4:14 ` Sasha Levin [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=20260412120103.block-blk-register-queue@kernel.org \
--to=sashal@kernel.org \
--cc=axboe@kernel.dk \
--cc=rob_garcia@163.com \
--cc=stable@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.