diff --git a/src/nvme/ioctl.c b/src/nvme/ioctl.c index 3a068f27..9090b7e6 100644 --- a/src/nvme/ioctl.c +++ b/src/nvme/ioctl.c @@ -1568,6 +1568,7 @@ int nvme_get_lba_status(struct nvme_get_lba_status_args *args) .opcode = nvme_admin_get_lba_status, .nsid = args->nsid, .addr = (__u64)(uintptr_t)args->lbas, + .data_len = (args->mndw + 1) << 2, .cdw10 = cdw10, .cdw11 = cdw11, .cdw12 = cdw12,