Skip to content

Commit

Permalink
mm: Fix problem of parameter in note
Browse files Browse the repository at this point in the history
'current' is a pointer, so the right form is  'down_write(&current->mm->mmap_sem)'.

Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jianjun Kong authored and torvalds committed Sep 18, 2009
1 parent 8f1ecc9 commit 27f5de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mmap.c
Expand Up @@ -905,7 +905,7 @@ void vm_stat_account(struct mm_struct *mm, unsigned long flags,
#endif /* CONFIG_PROC_FS */

/*
* The caller must hold down_write(current->mm->mmap_sem).
* The caller must hold down_write(&current->mm->mmap_sem).
*/

unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
Expand Down

0 comments on commit 27f5de7

Please sign in to comment.