From fc1867c44d1b6b0771deb2ff317331fc30b7ac78 Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Fri, 2 Jan 2026 13:15:43 +0800 Subject: [PATCH] kerndat: Fix error handling for kerndat_has_timer_cr_ids() fail After commit [1] we accidentally stopped reporting the errors from kerndat_has_timer_cr_ids(), let's fix that. Fixes: 1eaa870cc ("kerndat: check that hardware breakpoints work") [1] Signed-off-by: Pavel Tikhomirov --- criu/kerndat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/criu/kerndat.c b/criu/kerndat.c index 997181ce7..2dc2f77d5 100644 --- a/criu/kerndat.c +++ b/criu/kerndat.c @@ -2116,6 +2116,7 @@ int kerndat_init(void) } if (!ret && kerndat_has_timer_cr_ids()) { pr_err("kerndat_has_timer_cr_ids has failed when initializing kerndat.\n"); + ret = -1; } if (!ret && kerndat_breakpoints()) { pr_err("kerndat_breakpoints has failed when initializing kerndat.\n");