public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] mm: Fix problem of parameter in note
@ 2009-09-18  2:26 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2009-09-18  2:26 UTC (permalink / raw)
  To: lkml, Linus Torvalds; +Cc: Jianjun Kong

From: Jianjun Kong <jianjun@zeuux.org>
Subject: 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>
---
 mm/mmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- lnx-2631-rc7.orig/mm/mmap.c
+++ lnx-2631-rc7/mm/mmap.c
@@ -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,

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-18  2:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18  2:26 [PATCH 2/3] mm: Fix problem of parameter in note Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox