From: Matthew Wilcox Date: Tue, 16 Apr 2013 19:18:30 +0000 (-0400) Subject: NVMe: Fix I/O cancellation status on big-endian machines X-Git-Tag: firefly_0821_release~3680^2~503^2~17 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;ds=sidebyside;h=af2d9ca744af5e03390eeb3864d08ce75c860899;p=firefly-linux-kernel-4.4.55.git NVMe: Fix I/O cancellation status on big-endian machines The sparse bitwise checks pointed out that I needed to shift the status before changing its endianness, not after. Signed-off-by: Matthew Wilcox --- diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index 357c961151a1..a3c7d504d5e2 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c @@ -875,7 +875,7 @@ static void nvme_cancel_ios(struct nvme_queue *nvmeq, bool timeout) void *ctx; nvme_completion_fn fn; static struct nvme_completion cqe = { - .status = cpu_to_le16(NVME_SC_ABORT_REQ) << 1, + .status = cpu_to_le16(NVME_SC_ABORT_REQ << 1), }; if (timeout && !time_after(now, info[cmdid].timeout))