diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-04-03 08:17:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-04-03 08:17:38 +0000 |
commit | d57675fc67455faf7c68d4003a1ce884779e2c7c (patch) | |
tree | 3becd19ea8eda8827e45bf9e627d580fe614be64 /plugins/fdp/fdp.c | |
parent | Releasing debian version 2.4-1. (diff) | |
download | nvme-cli-d57675fc67455faf7c68d4003a1ce884779e2c7c.tar.xz nvme-cli-d57675fc67455faf7c68d4003a1ce884779e2c7c.zip |
Merging upstream version 2.4+really2.3.
This reverts commit f42531334c05b7f49ae43c0a27e347a487fb2667.
Diffstat (limited to 'plugins/fdp/fdp.c')
-rw-r--r-- | plugins/fdp/fdp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/fdp/fdp.c b/plugins/fdp/fdp.c index 1e292e8..9fef271 100644 --- a/plugins/fdp/fdp.c +++ b/plugins/fdp/fdp.c @@ -350,8 +350,7 @@ static int fdp_status(int argc, char **argv, struct command *cmd, struct plugin goto out; } - len = sizeof(struct nvme_fdp_ruh_status) + - le16_to_cpu(hdr.nruhsd) * sizeof(struct nvme_fdp_ruh_status_desc); + len = le16_to_cpu(hdr.nruhsd) * sizeof(struct nvme_fdp_ruh_status_desc); buf = malloc(len); if (!buf) { err = -ENOMEM; |