]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCgroupKillRecursive: Return -1 on failure condition
authorPeter Krempa <pkrempa@redhat.com>
Thu, 22 Oct 2020 07:56:46 +0000 (09:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 22 Oct 2020 13:02:46 +0000 (15:02 +0200)
commit0778cff2aedd1da142562c396d482335df18e620
tree2026e8849f29f92847bf58690c50dfcd1815a282
parentdb8e747af98df732aff67eca9fb67514310359bf
virCgroupKillRecursive: Return -1 on failure condition

virCgroupKillRecursive sneakily initializes 'ret' to 0 rather than the
usual -1. 401030499bf moved an error condition but didn't actually
modify 'ret' return the proper error code.

Fixes: 401030499bf
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircgroup.c