]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
add missing endianess conversions in __lnvm_do_set_bbtbl
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Sep 2016 03:23:08 +0000 (20:23 -0700)
committerKeith Busch <keith.busch@intel.com>
Fri, 23 Sep 2016 14:40:25 +0000 (10:40 -0400)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme-lightnvm.c

index 2454e01ad32e5ae76a1605bb7acd62bba72cb5a3..15753661b85434ee79fb00e5f9e20515584245c5 100644 (file)
@@ -398,7 +398,7 @@ static int __lnvm_do_set_bbtbl(int fd, struct ppa_addr ppa, __u8 value)
 
        struct nvme_nvm_setbbtbl cmd = {
                .opcode         = nvme_nvm_admin_set_bb_tbl,
-               .nsid           = 1,
+               .nsid           = cpu_to_le32(1),
                .ppa            = cpu_to_le64(ppa.ppa),
                .nlb            = cpu_to_le16(0),
                .value          = value,