Skip to content

Commit 61bdbec

Browse files
calebsanderigaw
authored andcommitted
ioctl: fix swapped parameters in nvme_set_features_host_id()
nvme_set_features_host_id()'s prototype says the parameter EXHID comes before SAVE, but its definition does the opposite, causing the parameters to be misinterpreted. Match the definition to the declaration. Signed-off-by: Caleb Sander <[email protected]>
1 parent 1b8477d commit 61bdbec

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
@@ -845,7 +845,7 @@ int nvme_set_features_sw_progress(int fd, __u8 pbslc, bool save,
845845
result);
846846
}
847847

848-
int nvme_set_features_host_id(int fd, bool save, bool exhid, __u8 *hostid)
848+
int nvme_set_features_host_id(int fd, bool exhid, bool save, __u8 *hostid)
849849
{
850850
__u32 len = exhid ? 16 : 8;
851851
__u32 value = !!exhid;

0 commit comments

Comments
 (0)