This is a note to let you know that I've just added the patch titled nvme: fix the nsid value to print in nvme_validate_or_alloc_ns to the 5.11-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: nvme-fix-the-nsid-value-to-print-in-nvme_validate_or_alloc_ns.patch and it can be found in the queue-5.11 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From f4f9fc29e56b6fa9d7fa65ec51d3c82aff99c99b Mon Sep 17 00:00:00 2001 From: Christoph Hellwig <hch@xxxxxx> Date: Fri, 12 Mar 2021 20:55:36 +0100 Subject: nvme: fix the nsid value to print in nvme_validate_or_alloc_ns From: Christoph Hellwig <hch@xxxxxx> commit f4f9fc29e56b6fa9d7fa65ec51d3c82aff99c99b upstream. ns can be NULL at this point, and my move of the check from the original patch by Chaitanya broke this. Fixes: 0ec84df4953b ("nvme-core: check ctrl css before setting up zns") Signed-off-by: Christoph Hellwig <hch@xxxxxx> Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4072,7 +4072,7 @@ static void nvme_validate_or_alloc_ns(st if (!nvme_multi_css(ctrl)) { dev_warn(ctrl->device, "command set not reported for nsid: %d\n", - ns->head->ns_id); + nsid); break; } nvme_alloc_ns(ctrl, nsid, &ids); Patches currently in stable-queue which might be from hch@xxxxxx are queue-5.11/nvme-add-nvme_req_cancelled-flag-in-nvme_cancel_requ.patch queue-5.11/nvme-fix-the-nsid-value-to-print-in-nvme_validate_or_alloc_ns.patch queue-5.11/nvme-fc-set-nvme_req_cancelled-in-nvme_fc_terminate_.patch queue-5.11/nvme-core-check-ctrl-css-before-setting-up-zns.patch queue-5.11/nvme-rdma-fix-a-use-after-free-in-nvmet_rdma_write_d.patch queue-5.11/fs-cachefiles-remove-wait_bit_key-layout-dependency.patch queue-5.11/nvme-simplify-error-logic-in-nvme_validate_ns.patch queue-5.11/block-suppress-uevent-for-hidden-device-when-removed.patch queue-5.11/nvme-pci-add-the-disable_write_zeroes-quirk-for-a-sa.patch queue-5.11/nvme-fc-return-nvme_sc_host_aborted_cmd-when-a-comma.patch