diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index 71cc3838f30f..01fca3ca9fec 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include "binder_alloc.h" @@ -224,7 +225,7 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate, } if (!vma && need_mm) { - pr_err("%d: binder_alloc_buf failed to map pages in userspace, no vma\n", + pr_err_ratelimited("%d: binder_alloc_buf failed to map pages in userspace, no vma\n", alloc->pid); goto err_no_vma; }