From 4e29fb5a219da56c53ef719d8284868a06b20478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 17 Jan 2024 16:55:24 +0100 Subject: [PATCH] fix: ucode_platformid_mask is hexa (fixes #485) --- spectre-meltdown-checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index dc272f4..540df33 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -604,7 +604,7 @@ is_cpu_affected() fixed_ucode_ver=$(( 0x$(echo "$tuple" | cut -d, -f2) )) affected_fmspi=$(echo "$tuple" | cut -d, -f1) affected_fms=$(echo "$affected_fmspi" | cut -d/ -f1) - ucode_platformid_mask=$(echo "$affected_fmspi" | cut -d/ -f2) + ucode_platformid_mask=0x$(echo "$affected_fmspi" | cut -d/ -f2) affected_cpuid=$(fms2cpuid \ 0x"$(echo "$affected_fms" | cut -d- -f1)" \ 0x"$(echo "$affected_fms" | cut -d- -f2)" \