Merge tag 'x86-mm-2021-04-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
[platform/kernel/linux-starfive.git] / arch / x86 / kernel / alternative.c
index 84ec0ba..6974b51 100644 (file)
@@ -706,7 +706,7 @@ static inline temp_mm_state_t use_temporary_mm(struct mm_struct *mm)
         * with a stale address space WITHOUT being in lazy mode after
         * restoring the previous mm.
         */
-       if (this_cpu_read(cpu_tlbstate.is_lazy))
+       if (this_cpu_read(cpu_tlbstate_shared.is_lazy))
                leave_mm(smp_processor_id());
 
        temp_state.mm = this_cpu_read(cpu_tlbstate.loaded_mm);