]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
nvme: add missing endianess annotations in nvme_pr_command
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Dec 2016 02:42:26 +0000 (18:42 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:31 +0000 (13:40 -0700)
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Fixes: ad4fd3610c27 ("NVMe: Add persistent reservation ops")
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit a6dd1020d8ac55782f3e04856644cf68765f8c1b)

Orabug: 25130845
Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c

index a8ab2a53daa6c68cf52122e0de70b48de3b03be7..cc76dc091d0d325f3e1b5d0f7eb285a237dda2f8 100644 (file)
@@ -2094,8 +2094,8 @@ static int nvme_pr_command(struct block_device *bdev, u32 cdw10,
 
        memset(&c, 0, sizeof(c));
        c.common.opcode = op;
-       c.common.nsid = ns->ns_id;
-       c.common.cdw10[0] = cdw10;
+       c.common.nsid = cpu_to_le32(ns->ns_id);
+       c.common.cdw10[0] = cpu_to_le32(cdw10);
 
        return nvme_submit_sync_cmd(ns->queue, &c, data, 16);
 }