mm: Fix problem of parameter in note
Subsystems (2)
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(¤t->mm->mmap_sem)'.
Signed-off-by Jianjun Kong <[email protected]>
Signed-off-by Randy Dunlap <[email protected]>
--- 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(¤t->mm->mmap_sem). */ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,