lkml.org 
[lkml]   [2009]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2/3] mm: Fix problem of parameter in note
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,

\
 
 \ /
  Last update: 2009-09-18 04:29    [W:0.023 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site