Re: [PATCH v7 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling
From: Thomas Gleixner
Date: Thu Oct 05 2017 - 09:31:49 EST
On Wed, 4 Oct 2017, Andi Kleen wrote:
> + /*
> + * Clear XSAVE features that are disabled in the normal CPUID.
> + */
> + for (i = 0; i < ARRAY_SIZE(xsave_cpuid_features); i++)
> + if (!boot_cpu_has(xsave_cpuid_features[i]))
> + xfeatures_mask &= ~BIT(i);
Please add curly braces around this multi line statement.
https://marc.info/?l=linux-kernel&m=148467980905537&w=2
Thanks,
tglx