Skip to contentSkip to conversation

mm: Fix problem of parameter in note

PATCH New Randy Dunlap 1 participant 1 message Sep 18, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 mm: Fix problem of parameter in note

From: Jianjun Kong <[email protected]>
Subject: mm: Fix problem of parameter in note

'current' is a pointer, so the right form is 'down_write(&current->mm->mmap_sem)'.

---
 mm/mmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/mmap.c +1 -1
@@ -905,7 +905,7 @@ void vm_stat_account(struct mm_struct *m
 #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,