From: Jeremy Kerr Date: Mon, 2 Aug 2021 05:50:16 +0000 (+0800) Subject: ioctl: Fix incorrect cdw initialisation in nvme_set_features X-Git-Tag: v1.0-rc0~114^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f72d5acef5968cc44e0400534155cbd125ca705f;p=users%2Fsagi%2Flibnvme.git ioctl: Fix incorrect cdw initialisation in nvme_set_features 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 --- diff --git a/src/nvme/ioctl.c b/src/nvme/ioctl.c index edc4433b..cac8e236 100644 --- a/src/nvme/ioctl.c +++ b/src/nvme/ioctl.c @@ -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);