mm: Fix problem of parameter in note
Subsystems (2)
'current' is a pointer, so the right form is 'down_write(¤t->mm->mmap_sem)'.
Signed-off-by Jianjun Kong <[email protected]>
--- mm/mmap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mm/mmap.c +1 -1
@@ -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(¤t->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>