From: Eyal Ben David Date: Wed, 27 Jun 2018 18:31:05 +0000 (+0300) Subject: nvme-ioctl.c : nvme_get_properties(): fix 64bit offset advance X-Git-Tag: v1.6~10^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4a3226be4448e00b3469448857d62980fe711137;p=users%2Fsagi%2Fnvme-cli.git nvme-ioctl.c : nvme_get_properties(): fix 64bit offset advance --- diff --git a/nvme-ioctl.c b/nvme-ioctl.c index f1c7ce6d..2e0abf9c 100644 --- a/nvme-ioctl.c +++ b/nvme-ioctl.c @@ -578,8 +578,10 @@ int nvme_get_properties(int fd, void **pbar) continue; } ret = 0; - if (is64bit) + if (is64bit) { *(uint64_t *)(*pbar + off) = le64_to_cpu(value64); + off += 4; + } else *(uint32_t *)(*pbar + off) = le32_to_cpu(value64); }