[CRIU] [PATCH] cpuinfo: Don't report negative values to shell
Pavel Emelyanov
xemul at parallels.com
Fri Oct 3 03:42:11 PDT 2014
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
arch/x86/cpu.c | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/arch/x86/cpu.c b/arch/x86/cpu.c
index 018f551..d0263ab 100644
--- a/arch/x86/cpu.c
+++ b/arch/x86/cpu.c
@@ -368,7 +364,7 @@ int cpuinfo_dump(void)
int cpuinfo_check(void)
{
if (cpu_init())
- return -1;
+ return 1;
/*
* Force to check all caps because its been
@@ -377,6 +373,7 @@ int cpuinfo_check(void)
opts.cpu_cap = CPU_CAP_ALL;
if (cpu_validate_cpuinfo())
- return -1;
+ return 1;
+
return 0;
}
--
1.8.4.2
More information about the CRIU
mailing list