From: Christoph Hellwig Date: Fri, 21 Apr 2017 08:43:13 +0000 (+0200) Subject: nvmet-fc: properly endian swap sq_head X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ad76cf10012b625800a9764c5af08dbc0948ff7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git nvmet-fc: properly endian swap sq_head Found by sparse. Signed-off-by: Christoph Hellwig Reviewed-by: James Smart Reviewed-by: Johannes Thumshirn --- diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c index 4392b514725b..62eba29c85fb 100644 --- a/drivers/nvme/target/fc.c +++ b/drivers/nvme/target/fc.c @@ -1700,7 +1700,7 @@ nvmet_fc_prep_fcp_rsp(struct nvmet_fc_tgtport *tgtport, xfr_length != fod->total_length || (le16_to_cpu(cqe->status) & 0xFFFE) || cqewd[0] || cqewd[1] || (sqe->flags & (NVME_CMD_FUSE_FIRST | NVME_CMD_FUSE_SECOND)) || - queue_90percent_full(fod->queue, cqe->sq_head)) + queue_90percent_full(fod->queue, le16_to_cpu(cqe->sq_head))) send_ersp = true; /* re-set the fields */