Skip to content

Commit db619f7

Browse files
calebsanderigaw
authored andcommitted
ioctl: pass ENDGID in nvme_get_features_endurance_event_cfg()
The ENDGID parameter of nvme_get_features_endurance_event_cfg() is currently unused. According to the NVMe spec, it should be passed in CDW 11. Signed-off-by: Caleb Sander <[email protected]>
1 parent 0cc2cae commit db619f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nvme/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ int nvme_get_features_endurance_event_cfg(int fd, enum nvme_get_features_sel sel
12071207
.fid = NVME_FEAT_FID_ENDURANCE_EVT_CFG,
12081208
.nsid = NVME_NSID_NONE,
12091209
.sel = sel,
1210-
.cdw11 = 0,
1210+
.cdw11 = endgid,
12111211
.uuidx = NVME_UUID_NONE,
12121212
.data_len = 0,
12131213
.data = NULL,

0 commit comments

Comments
 (0)