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:
parent
36d31e5d73
commit
af84646b79
|
@ -3850,6 +3850,7 @@ check_CVE_2018_3646_linux()
|
||||||
pstatus yellow UNKNOWN "unrecognized mode"
|
pstatus yellow UNKNOWN "unrecognized mode"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
l1d_mode=-1
|
||||||
pstatus yellow UNKNOWN "can't find or read /sys/devices/system/cpu/vulnerabilities/l1tf"
|
pstatus yellow UNKNOWN "can't find or read /sys/devices/system/cpu/vulnerabilities/l1tf"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue