diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-21 02:26:57 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-04-25 14:01:15 -0400 |
commit | 25d9baa47505ead1bcae7334991363c3bbfa1831 (patch) | |
tree | cd269769fcd8a74ce59118221e3e9d7f119eff64 | |
parent | 7fad1fd46ccf3ee283052e948cf91edd0cd9b1c7 (diff) |
nvme-lightnvm: add missing endianess conversion in nvme_nvm_end_io
Found by sparse.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Matias Bjørling <matias@cnexlabs.com>
-rw-r--r-- | drivers/nvme/host/lightnvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index de61a4a03d78..e4e4e60b1224 100644 --- 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) | |||
483 | { | 483 | { |
484 | struct nvm_rq *rqd = rq->end_io_data; | 484 | struct nvm_rq *rqd = rq->end_io_data; |
485 | 485 | ||
486 | rqd->ppa_status = nvme_req(rq)->result.u64; | 486 | rqd->ppa_status = le64_to_cpu(nvme_req(rq)->result.u64); |
487 | rqd->error = nvme_req(rq)->status; | 487 | rqd->error = nvme_req(rq)->status; |
488 | nvm_end_io(rqd); | 488 | nvm_end_io(rqd); |
489 | 489 | ||