]> 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)
commitd337aa03f73a6e97aee8685fa1970aa8391c64cc
tree170f6d1870ec3996b35e2c02677b3cac70d9e585
parent4f3a2f9cfcc95431bede16f7542d2eba5dc96de8
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: 44f37f5e01f6 ("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