Unverified Commit 008737a0 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11512 x86/mtrr: Check if fixed MTRRs exist before saving them

parents bf039567 72a34cd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -819,7 +819,7 @@ void mtrr_save_state(void)
{
	int first_cpu;

	if (!mtrr_enabled())
	if (!mtrr_enabled() || !mtrr_state.have_fixed)
		return;

	first_cpu = cpumask_first(cpu_online_mask);