From: Jianjun Kong Date: Fri, 18 Sep 2009 02:26:26 +0000 (-0700) Subject: mm: Fix problem of parameter in note X-Git-Tag: MMI-PSA29.97-13-9~26909 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27f5de7963f46388932472b660f2f9a86ab58454;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mm: Fix problem of parameter in note 'current' is a pointer, so the right form is 'down_write(¤t->mm->mmap_sem)'. Signed-off-by: Jianjun Kong Signed-off-by: Randy Dunlap Signed-off-by: Linus Torvalds --- 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(¤t->mm->mmap_sem). */ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,