Skip to content

Commit

Permalink
fix: hide arch_capabilities_msr_not_read warning under !intel
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Aug 13, 2018
1 parent 5f59257 commit 360be7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectre-meltdown-checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ is_skylake_cpu()

is_vulnerable_to_empty_rsb()
{
if [ -z "$capabilities_rsba" ]; then
if is_intel && [ -z "$capabilities_rsba" ]; then
_warn "is_vulnerable_to_empty_rsb() called before ARCH CAPABILITIES MSR was read"
fi
if is_skylake_cpu || [ "$capabilities_rsba" = 1 ]; then
Expand Down

0 comments on commit 360be7b

Please sign in to comment.