]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/nvme/host/lightnvm.c
nvme-lightnvm: add missing endianess conversion in nvme_nvm_end_io
[karo-tx-linux.git] / drivers / nvme / host / lightnvm.c
index de61a4a03d7820482ba4077f5ea840359ce8d56c..e4e4e60b1224f770ab89d0a4f0cde4e86d6eea42 100644 (file)
@@ -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);