diff --git a/drivers/android/simple_lmk.c b/drivers/android/simple_lmk.c index 3816f8bf3946..76f40e99b80d 100644 --- a/drivers/android/simple_lmk.c +++ b/drivers/android/simple_lmk.c @@ -165,8 +165,10 @@ static void scan_and_kill(unsigned long pages_needed) read_unlock(&tasklist_lock); /* Pretty unlikely but it can happen */ - if (unlikely(!nr_victims)) + if (unlikely(!nr_victims)) { + pr_err("No processes available to kill!\n"); return; + } /* First round of victim processing to weed out unneeded victims */ nr_to_kill = process_victims(nr_victims, pages_needed);