]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
ioctl: use lsp arg in nvme_get_log_boot_partition
authorDaniel Wagner <dwagner@suse.de>
Tue, 31 Oct 2023 15:41:13 +0000 (16:41 +0100)
committerDaniel Wagner <wagi@monom.org>
Tue, 31 Oct 2023 17:28:22 +0000 (18:28 +0100)
The function ask for the lsp but doesn't pass it to the command.

Fixes: 21acd638c4c9 ("types: add boot partition log support")
Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/ioctl.h

index 30761526822d44dfb1455a316f14a186eadde1f7..4a0698fc266485a1c1b38c058528bcb1377240a3 100644 (file)
@@ -1920,7 +1920,7 @@ static inline int nvme_get_log_boot_partition(int fd, bool rae,
                .nsid = NVME_NSID_NONE,
                .csi = NVME_CSI_NVM,
                .lsi = NVME_LOG_LSI_NONE,
-               .lsp = NVME_LOG_LSP_NONE,
+               .lsp = lsp,
                .uuidx = NVME_UUID_NONE,
                .rae = rae,
                .ot = false,