ANDROID: Fix mmu_notifier_trylock definition for !CONFIG_MMU_NOTIFIER config
mmu_notifier_trylock definition for CONFIG_MMU_NOTIFIER=n configuration
has not been modified from the older version. Correct that mistake.
Fixes: 6971350406 ("ANDROID: fix mmu_notifier race caused by not taking mmap_lock during SPF")
Bug: 161210518
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I71b8644bd2864b6ed98a7ff9c15a99fbd4c5a6c5
This commit is contained in:
parent
7531e63661
commit
75617df5b3
1 changed files with 2 additions and 1 deletions
|
|
@ -796,8 +796,9 @@ static inline void mmu_notifier_subscriptions_destroy(struct mm_struct *mm)
|
|||
{
|
||||
}
|
||||
|
||||
static inline void mmu_notifier_lock(struct mm_struct *mm)
|
||||
static inline bool mmu_notifier_trylock(struct mm_struct *mm)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline void mmu_notifier_unlock(struct mm_struct *mm)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue