mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
nvme: fix the nsid value to print in nvme_validate_or_alloc_ns
commitf4f9fc29e5upstream. ns can be NULL at this point, and my move of the check from the original patch by Chaitanya broke this. Fixes:0ec84df495("nvme-core: check ctrl css before setting up zns") Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
36478a9ec5
commit
f12d05f702
@@ -4022,7 +4022,7 @@ static void nvme_validate_or_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid)
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user