mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
percpu: perform tlb flush after pcpu_map_pages() failure
commit 849f516909
upstream.
If pcpu_map_pages() fails midway, it unmaps the already mapped pages.
Currently, it doesn't flush tlb after the partial unmapping. This may
be okay in most cases as the established mapping hasn't been used at
that point but it can go wrong and when it goes wrong it'd be
extremely difficult to track down.
Flush tlb after the partial unmapping.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
This commit is contained in:
parent
240269ae89
commit
bd188dc72d
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ err:
|
|||
__pcpu_unmap_pages(pcpu_chunk_addr(chunk, tcpu, page_start),
|
||||
page_end - page_start);
|
||||
}
|
||||
pcpu_post_unmap_tlb_flush(chunk, page_start, page_end);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue