]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
ioctl: Fix incorrect cdw initialisation in nvme_set_features
authorJeremy Kerr <jk@codeconstruct.com.au>
Mon, 2 Aug 2021 05:50:16 +0000 (13:50 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Fri, 6 Aug 2021 03:45:10 +0000 (11:45 +0800)
We're not currently setting cdw15 in nvme_set_features due to a typo in
the struct initialisation. This change fixes the init.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
src/nvme/ioctl.c

index edc4433b95a45f917e67d6b2ac2c57d95083925b..cac8e23693a9e675e60ff593f66976ee0f67ed67 100644 (file)
@@ -755,7 +755,7 @@ int nvme_set_features(int fd, __u8 fid, __u32 nsid, __u32 cdw11, __u32 cdw12,
                .cdw11          = cdw11,
                .cdw12          = cdw12,
                .cdw14          = cdw14,
-               .cdw14          = cdw15,
+               .cdw15          = cdw15,
        };
 
        return nvme_submit_admin_passthru(fd, &cmd, result);