aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/android/binder_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/android/binder_alloc.c')
-rw-r--r--drivers/android/binder_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c
index 4f382d51def1..2628806c64a2 100644
--- a/drivers/android/binder_alloc.c
+++ b/drivers/android/binder_alloc.c
@@ -692,8 +692,8 @@ int binder_alloc_mmap_handler(struct binder_alloc *alloc,
692 } 692 }
693 } 693 }
694#endif 694#endif
695 alloc->pages = kzalloc(sizeof(alloc->pages[0]) * 695 alloc->pages = kcalloc((vma->vm_end - vma->vm_start) / PAGE_SIZE,
696 ((vma->vm_end - vma->vm_start) / PAGE_SIZE), 696 sizeof(alloc->pages[0]),
697 GFP_KERNEL); 697 GFP_KERNEL);
698 if (alloc->pages == NULL) { 698 if (alloc->pages == NULL) {
699 ret = -ENOMEM; 699 ret = -ENOMEM;