diff options
| author | Al Viro <[email protected]> | 2012-02-13 03:58:52 +0000 |
|---|---|---|
| committer | James Morris <[email protected]> | 2012-02-13 23:45:39 +0000 |
| commit | 191c542442fdf53cc3c496c00be13367fd9cd42d (patch) | |
| tree | 4aef9e33a1d99e6530b704243efbe373bb314d61 /mm/mremap.c | |
| parent | digsig: changed type of the timestamp (diff) | |
| download | kernel-191c542442fdf53cc3c496c00be13367fd9cd42d.tar.gz kernel-191c542442fdf53cc3c496c00be13367fd9cd42d.zip | |
mm: collapse security_vm_enough_memory() variants into a single function
Collapse security_vm_enough_memory() variants into a single function.
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'mm/mremap.c')
| -rw-r--r-- | mm/mremap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mremap.c b/mm/mremap.c index 87bb8393e7d2..db8d983b5a7d 100644 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -329,7 +329,7 @@ static struct vm_area_struct *vma_to_resize(unsigned long addr, if (vma->vm_flags & VM_ACCOUNT) { unsigned long charged = (new_len - old_len) >> PAGE_SHIFT; - if (security_vm_enough_memory(charged)) + if (security_vm_enough_memory_mm(mm, charged)) goto Efault; *p = charged; } |
