Skip to contentSkip to conversation

mm: Fix problem of parameter in note

PATCH/RESEND Jianjun Kong 1 participant 1 message Oct 27, 2008

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

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

---
 mm/mmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/mmap.c +1 -1
index 74f4d15..3183990 100644
@@ -904,7 +904,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,
Signature · 7 lines
1.5.6.3

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>