projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1dd03a
)
nvmet: add missing byte swap in nvmet_get_smart_log
author
Christoph Hellwig
<hch@lst.de>
Fri, 31 Mar 2017 15:00:06 +0000
(17:00 +0200)
committer
Sagi Grimberg
<sagi@grimberg.me>
Sun, 2 Apr 2017 07:24:15 +0000
(10:24 +0300)
In this case entirely harmless as it's all-ones, but still nice to
shut up sparse.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/admin-cmd.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/target/admin-cmd.c
b/drivers/nvme/target/admin-cmd.c
index
a7bcff4
..
76450b0
100644
(file)
--- a/
drivers/nvme/target/admin-cmd.c
+++ b/
drivers/nvme/target/admin-cmd.c
@@
-100,7
+100,7
@@
static u16 nvmet_get_smart_log(struct nvmet_req *req,
u16 status;
WARN_ON(req == NULL || slog == NULL);
- if (req->cmd->get_log_page.nsid ==
0xFFFFFFFF
)
+ if (req->cmd->get_log_page.nsid ==
cpu_to_le32(0xFFFFFFFF)
)
status = nvmet_get_smart_log_all(req, slog);
else
status = nvmet_get_smart_log_nsid(req, slog);