diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-26 14:22:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 16:52:09 -0700 |
commit | e6219ec8195efd5640765e657810f262ad9d1a92 (patch) | |
tree | 36c718adce5018fe87398fc7d8ebb7c1dfb14646 /mm | |
parent | 25ca1d6c02fe1c6d90d918867ef670d323725458 (diff) | |
download | linux-stable-e6219ec8195efd5640765e657810f262ad9d1a92.tar.gz linux-stable-e6219ec8195efd5640765e657810f262ad9d1a92.tar.bz2 linux-stable-e6219ec8195efd5640765e657810f262ad9d1a92.zip |
mm: add lock release annotation on do_wp_page()
The do_wp_page() releases @ptl but was missing proper annotation. Add it.
This removes following warnings from sparse:
mm/memory.c:2337:9: warning: context imbalance in 'do_wp_page' - unexpected unlock
mm/memory.c:3142:19: warning: context imbalance in 'handle_mm_fault' - different lock contexts for basic block
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/memory.c b/mm/memory.c index 4ce24a4d5d48..01bdf9dbbfac 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2108,6 +2108,7 @@ static inline void cow_user_page(struct page *dst, struct page *src, unsigned lo static int do_wp_page(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long address, pte_t *page_table, pmd_t *pmd, spinlock_t *ptl, pte_t orig_pte) + __releases(ptl) { struct page *old_page, *new_page; pte_t entry; |