Skip to content

Commit 3c47c2c

Browse files
committed
nvmet: fix rw control endian access
Fixes: 3ec5c62 ("nvmet: handle rw's limited retry flag") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Cc: Guixin Liu <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent e7b94c5 commit 3c47c2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/target/io-cmd-bdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static void nvmet_bdev_execute_rw(struct nvmet_req *req)
272272
iter_flags = SG_MITER_FROM_SG;
273273
}
274274

275-
if (req->cmd->rw.control & NVME_RW_LR)
275+
if (req->cmd->rw.control & cpu_to_le16(NVME_RW_LR))
276276
opf |= REQ_FAILFAST_DEV;
277277

278278
if (is_pci_p2pdma_page(sg_page(req->sg)))

0 commit comments

Comments
 (0)