Set $l1d_mode to -1 in cases where cpu/vulnerabilities/l1tf is not available

(prevents invalid number error when evaluating [ "$l1d_mode" -ge 1 ])

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
Rob Gill 2018-10-28 10:57:01 +10:00
parent 36d31e5d73
commit af84646b79
1 changed files with 1 additions and 0 deletions

View File

@ -3850,6 +3850,7 @@ check_CVE_2018_3646_linux()
pstatus yellow UNKNOWN "unrecognized mode"
fi
else
l1d_mode=-1
pstatus yellow UNKNOWN "can't find or read /sys/devices/system/cpu/vulnerabilities/l1tf"
fi
else