[libvirt PATCH] util: Fix error reporting in virProcessSetMaxMemLock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit v7.1.0-136-g6a6d6bb520 refactored virProcessSetMaxMemLock by
moving its part into a new virProcessSetLimit, but lost "return -1" on
error;

Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 src/util/virprocess.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virprocess.c b/src/util/virprocess.c
index 5ed0b5d0db..013afd91b4 100644
--- a/src/util/virprocess.c
+++ b/src/util/virprocess.c
@@ -926,6 +926,7 @@ virProcessSetMaxMemLock(pid_t pid, unsigned long long bytes)
                              _("cannot limit locked memory "
                                "of process %lld to %llu"),
                              (long long int)pid, bytes);
+        return -1;
     }
 
     VIR_DEBUG("Locked memory for process %lld limited to %llu bytes",
-- 
2.35.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux