Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af2d9ca7 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

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: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent 8741ee4c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -875,7 +875,7 @@ static void nvme_cancel_ios(struct nvme_queue *nvmeq, bool timeout)
		void *ctx;
		void *ctx;
		nvme_completion_fn fn;
		nvme_completion_fn fn;
		static struct nvme_completion cqe = {
		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))
		if (timeout && !time_after(now, info[cmdid].timeout))