mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 23:34:05 +08:00
sparc64: Fix missing put_cpu_var() in tlb_batch_add_one() when not batching.
Reported-by: Meelis Roos <mroos@linux.ee> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
60d509fa6a
commit
f0af97070a
@ -87,7 +87,7 @@ static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr,
|
|||||||
if (!tb->active) {
|
if (!tb->active) {
|
||||||
global_flush_tlb_page(mm, vaddr);
|
global_flush_tlb_page(mm, vaddr);
|
||||||
flush_tsb_user_page(mm, vaddr);
|
flush_tsb_user_page(mm, vaddr);
|
||||||
return;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nr == 0)
|
if (nr == 0)
|
||||||
@ -98,6 +98,7 @@ static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr,
|
|||||||
if (nr >= TLB_BATCH_NR)
|
if (nr >= TLB_BATCH_NR)
|
||||||
flush_tlb_pending();
|
flush_tlb_pending();
|
||||||
|
|
||||||
|
out:
|
||||||
put_cpu_var(tlb_batch);
|
put_cpu_var(tlb_batch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user