Skip to content

Commit

Permalink
Fix a bug in cpuid handling code (shouldn't clear ecx for leaf 0xb)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdcui committed Dec 15, 2021
1 parent a786fb5 commit f874f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/sev-es-shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static bool lookup_cpuid_page(struct pt_regs *regs)
bool found = false;
int i;

if (eax_in < 0xd)
if (eax_in < 0xb)
ecx_in = 0;

#ifdef __BOOT_COMPRESSED
Expand Down

0 comments on commit f874f2f

Please sign in to comment.