The function does not set the errno on overflow conditions, so the ERR()
will produce (somewhat) arbitrary strerror. Similar to other places
throughout the code base - just use ENOMEM.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/368
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
*modinfo = strbuf_to_vector(&buf, (size_t)count);
if (*modinfo == NULL) {
count = -ENOMEM;
- ERR(ctx, "strbuf_to_vector: %m\n");
+ ERR(ctx, "strbuf_to_vector: %s\n", strerror(ENOMEM));
}
}