mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virCgroupKillRecursive: Return -1 on failure condition
virCgroupKillRecursive sneakily initializes 'ret' to 0 rather than the usual -1.401030499b
moved an error condition but didn't actually modify 'ret' return the proper error code. Fixes:401030499b
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
db8e747af9
commit
0778cff2ae
@ -2591,6 +2591,7 @@ virCgroupKillRecursive(virCgroupPtr group, int signum)
|
||||
if (!backends || !backendAvailable) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("no cgroup backend available"));
|
||||
ret = -1;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user