]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme: fix the nsid value to print in nvme_validate_or_alloc_ns
authorChristoph Hellwig <hch@lst.de>
Fri, 12 Mar 2021 19:55:36 +0000 (20:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:30:31 +0000 (14:30 +0200)
commit14a3924fa3f0872fd9151f0ef57c49b84e33da94
treeae749ba664abdefe239ad7e21f3410a6ea1827eb
parent05009abe7c97fcdd25669b827ebce351ebd42d84
nvme: fix the nsid value to print in nvme_validate_or_alloc_ns

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@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/core.c