From c9e23a8f8d1c417c0d2d53b95de126e58d8bfea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Sun, 3 Dec 2023 09:20:04 +0100 Subject: [PATCH] criu: fix error return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Erik Sjölund --- src/libcrun/criu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcrun/criu.c b/src/libcrun/criu.c index 821d8ba4f0..05f76e0186 100644 --- a/src/libcrun/criu.c +++ b/src/libcrun/criu.c @@ -624,8 +624,8 @@ libcrun_container_checkpoint_linux_criu (libcrun_container_status_t *status, lib } ret = libcriu_wrapper->criu_set_freeze_cgroup (freezer_path); - if (UNLIKELY (ret != 0)) - return crun_make_error (err, ret, "CRIU: failed setting freezer %d", ret); + if (UNLIKELY (ret < 0)) + return crun_make_error (err, -ret, "CRIU: failed setting freezer %d", ret); /* Set boolean options . */ libcriu_wrapper->criu_set_leave_running (cr_options->leave_running);