Fix unset $l1d_mode

Another instance of unset l1d_mode causing error "./spectre-meltdown-checker.sh: 3867: [: Illegal number:"
This commit is contained in:
Rob Gill 2018-10-31 10:12:03 +10:00 committed by GitHub
parent 47f8f672a3
commit ad2b89c1f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3859,6 +3859,7 @@ check_CVE_2018_3646_linux()
pstatus yellow UNKNOWN "can't find or read /sys/devices/system/cpu/vulnerabilities/l1tf"
fi
else
l1d_mode=-1
pstatus blue N/A "not testable in offline mode"
fi
@ -3887,6 +3888,7 @@ check_CVE_2018_3646_linux()
# we have no sysfs but were asked to use it only!
msg="/sys vulnerability interface use forced, but it's not available!"
status=UNK
l1d_mode=-1
fi
if ! is_cpu_vulnerable "$cve"; then