From: Christoph Hellwig Date: Fri, 21 Apr 2017 06:26:57 +0000 (+0200) Subject: nvme-lightnvm: add missing endianess conversion in nvme_nvm_end_io X-Git-Tag: MMI-PSA29.97-13-9~5760^2^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25d9baa47505ead1bcae7334991363c3bbfa1831;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git nvme-lightnvm: add missing endianess conversion in nvme_nvm_end_io Found by sparse. Signed-off-by: Christoph Hellwig Reviewed-by: Matias Bjørling --- 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) { 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);