Commit ec6c4708 authored by Kochi Takayoshi's avatar Kochi Takayoshi Committed by David Mosberger

[PATCH] ia64: don't access per-CPU data of off-line CPUs

This patch prevents a crash that happens when per-CPU data is allocated
only for CPUs that are online.
parent 7f5b5da7
......@@ -77,7 +77,7 @@ wrap_mmu_context (struct mm_struct *mm)
{
int cpu = get_cpu(); /* prevent preemption/migration */
for (i = 0; i < NR_CPUS; ++i)
if (i != cpu)
if (cpu_online(i) && (i != cpu))
per_cpu(ia64_need_tlb_flush, i) = 1;
put_cpu();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment