Skip to content

Commit 747030b

Browse files
committed
ioctl: use correct defines for set_features field encode
Use the set feature defines instead of the identify. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 36a2097 commit 747030b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libnvme/src/nvme/ioctl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6970,8 +6970,8 @@ nvme_set_features(struct nvme_transport_handle *hdl, __u32 nsid, __u8 fid,
69706970
cmd.cdw12 = cdw12;
69716971
cmd.cdw13 = cdw13;
69726972
cmd.cdw14 = NVME_FIELD_ENCODE(uidx,
6973-
NVME_IDENTIFY_CDW14_UUID_SHIFT,
6974-
NVME_IDENTIFY_CDW14_UUID_MASK);
6973+
NVME_SET_FEATURES_CDW14_UUID_SHIFT,
6974+
NVME_SET_FEATURES_CDW14_UUID_MASK);
69756975
cmd.cdw15 = cdw15;
69766976
cmd.data_len = len;
69776977
cmd.addr = (__u64)(uintptr_t)data;

0 commit comments

Comments
 (0)