summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJianjun Kong <jianjun@zeuux.org>2009-09-18 04:26:26 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-18 18:48:52 +0200
commit27f5de7963f46388932472b660f2f9a86ab58454 (patch)
tree83bd98f83819ae9012ada5f077e59fcb18319769 /mm
parentkref: double kref_put() in my_data_handler() (diff)
downloadlinux-27f5de7963f46388932472b660f2f9a86ab58454.tar.xz
linux-27f5de7963f46388932472b660f2f9a86ab58454.zip
mm: Fix problem of parameter in note
'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>
Diffstat (limited to 'mm')
-rw-r--r--mm/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 8101de490c73..26892e346d8f 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -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,