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)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Mar 2021 20:17:45 +0000 (13:17 -0700)
commitf4f9fc29e56b6fa9d7fa65ec51d3c82aff99c99b
tree170f6d1870ec3996b35e2c02677b3cac70d9e585
parentd4b64fd702cf08dfcac9e294a10884de51c6af63
nvme: fix the nsid value to print in nvme_validate_or_alloc_ns

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>
drivers/nvme/host/core.c