mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 17:24:53 +00:00
virCgroupAddTaskStrController: s/-1/-ENOMEM/
Within whole vircgroup.c we 'return -errno', e.g. 'return -ENOMEM'. However, in this specific function virCgroupAddTaskStrController we weren't returning -ENOMEM but -1 despite fact that later in the function we are returning one of errno values indeed.
This commit is contained in:
parent
677981d1be
commit
b43bb98a31
@ -1028,7 +1028,7 @@ static int virCgroupAddTaskStrController(virCgroupPtr group,
|
|||||||
char *endp;
|
char *endp;
|
||||||
|
|
||||||
if (!(str = strdup(pidstr)))
|
if (!(str = strdup(pidstr)))
|
||||||
return -1;
|
return -ENOMEM;
|
||||||
|
|
||||||
cur = str;
|
cur = str;
|
||||||
while (*cur != '\0') {
|
while (*cur != '\0') {
|
||||||
|
Loading…
Reference in New Issue
Block a user