diff options
| author | Rajesh Kemisetti <rajeshk@codeaurora.org> | 2019-04-30 19:04:30 +0530 |
|---|---|---|
| committer | Archana Sriram <apsrir@codeaurora.org> | 2019-05-08 10:05:28 +0530 |
| commit | 1d02b55727d53946aedeee9d330664e385195440 (patch) | |
| tree | ae11647bd58cd8900539e050a13b0e553bfb4425 /kernel/trace/ring_buffer.c | |
| parent | 57cc803c86c0c29f7ed2a1302b76c43442cb11a1 (diff) | |
msm: kgsl: Fix race condition while making page as dirty
set_page_dirty() is racy if the caller has no
reference against page->mapping->host, and if
the page is unlocked. This is because another
CPU could truncate the page off the mapping and
then free the mapping.
Use set_page_dirty_lock() to avoid this race condition.
Change-Id: I517fb9aee66560618c7676b311368f7a7498011f
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions
