]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Mar 2021 20:17:45 +0000 (13:17 -0700)
commita53d262c38ab36c5c8917b153a6e2236ae9405c5
tree170f6d1870ec3996b35e2c02677b3cac70d9e585
parenta8a2b5f22e454aed0dfb121312cccb89ed878c7b
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: 963bcfd23ccc ("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