]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-core: do not pass empty queue_limits to blk_mq_alloc_queue()
authorMaurizio Lombardi <mlombard@redhat.com>
Fri, 20 Feb 2026 13:30:16 +0000 (14:30 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 10 Mar 2026 15:20:29 +0000 (08:20 -0700)
commit0375c81eb2256366cd9602441d48b8b937e79635
tree0eaa80e675403dd15d6facb598659ea406e8319e
parentfc71f409b22ca831a9f87a2712eaa09ef2bb4a5e
nvme-core: do not pass empty queue_limits to blk_mq_alloc_queue()

In nvme_alloc_admin_tag_set(), an empty queue_limits struct is
currently allocated on the stack and passed by reference to
blk_mq_alloc_queue().

This is redundant because blk_mq_alloc_queue() already handles
a NULL limits pointer by internally substituting it with a default
empty queue_limits struct.
Remove the unnecessary local variable and pass a NULL value.

Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c