Merging upstream version 2.4+really2.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f52576e699
commit
be98c20625
458 changed files with 7148 additions and 5151 deletions
|
@ -350,7 +350,8 @@ static int fdp_status(int argc, char **argv, struct command *cmd, struct plugin
|
|||
goto out;
|
||||
}
|
||||
|
||||
len = le16_to_cpu(hdr.nruhsd) * sizeof(struct nvme_fdp_ruh_status_desc);
|
||||
len = sizeof(struct nvme_fdp_ruh_status) +
|
||||
le16_to_cpu(hdr.nruhsd) * sizeof(struct nvme_fdp_ruh_status_desc);
|
||||
buf = malloc(len);
|
||||
if (!buf) {
|
||||
err = -ENOMEM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue