mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mm: wrap get_locked_pte() using __cond_lock()
The get_locked_pte() conditionally grabs 'ptl' in case of returning non-NULL. This leads sparse to complain about context imbalance. Rename and wrap it using __cond_lock() to make sparse happy. Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e6223a3b19
commit
25ca1d6c02
2 changed files with 10 additions and 2 deletions
|
|
@ -1591,7 +1591,7 @@ struct page *get_dump_page(unsigned long addr)
|
|||
}
|
||||
#endif /* CONFIG_ELF_CORE */
|
||||
|
||||
pte_t *get_locked_pte(struct mm_struct *mm, unsigned long addr,
|
||||
pte_t *__get_locked_pte(struct mm_struct *mm, unsigned long addr,
|
||||
spinlock_t **ptl)
|
||||
{
|
||||
pgd_t * pgd = pgd_offset(mm, addr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue