projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b64fd
)
nvme: fix the nsid value to print in nvme_validate_or_alloc_ns
author
Christoph Hellwig
<hch@lst.de>
Fri, 12 Mar 2021 19:55:36 +0000
(20:55 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 12 Mar 2021 20:17:45 +0000
(13:17 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/core.c
b/drivers/nvme/host/core.c
index 82ad5eef9d0c301b71073b83c670061e1d15720a..a5653892d77392970a3cd4979d7555fec794e576 100644
(file)
--- a/
drivers/nvme/host/core.c
+++ b/
drivers/nvme/host/core.c
@@
-4099,7
+4099,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);