projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fad1fd
)
nvme-lightnvm: add missing endianess conversion in nvme_nvm_end_io
author
Christoph Hellwig
<hch@lst.de>
Fri, 21 Apr 2017 06:26:57 +0000
(08:26 +0200)
committer
Christoph Hellwig
<hch@lst.de>
Tue, 25 Apr 2017 18:01:15 +0000
(20:01 +0200)
Found by sparse.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Matias Bjørling <matias@cnexlabs.com>
drivers/nvme/host/lightnvm.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/lightnvm.c
b/drivers/nvme/host/lightnvm.c
index de61a4a03d7820482ba4077f5ea840359ce8d56c..e4e4e60b1224f770ab89d0a4f0cde4e86d6eea42 100644
(file)
--- a/
drivers/nvme/host/lightnvm.c
+++ b/
drivers/nvme/host/lightnvm.c
@@
-483,7
+483,7
@@
static void nvme_nvm_end_io(struct request *rq, int error)
{
struct nvm_rq *rqd = rq->end_io_data;
- rqd->ppa_status =
nvme_req(rq)->result.u64
;
+ rqd->ppa_status =
le64_to_cpu(nvme_req(rq)->result.u64)
;
rqd->error = nvme_req(rq)->status;
nvm_end_io(rqd);