Skip to content

Commit

Permalink
mm/memory.c:print_vma_addr(): call up_read(&mm->mmap_sem) directly
Browse files Browse the repository at this point in the history
Call up_read(&mm->mmap_sem) directly since we have already got mm via
current->mm at the beginning of print_vma_addr().

Signed-off-by: Jie Liu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
pibroch authored and torvalds committed Aug 1, 2012
1 parent 8e125cd commit 51a07e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -3941,7 +3941,7 @@ void print_vma_addr(char *prefix, unsigned long ip)
free_page((unsigned long)buf);
}
}
up_read(&current->mm->mmap_sem);
up_read(&mm->mmap_sem);
}

#ifdef CONFIG_PROVE_LOCKING
Expand Down

0 comments on commit 51a07e5

Please sign in to comment.