diff --git a/drivers/android/simple_lmk.c b/drivers/android/simple_lmk.c index 0013f4d37b7d..3ed9182c1d42 100644 --- a/drivers/android/simple_lmk.c +++ b/drivers/android/simple_lmk.c @@ -191,7 +191,7 @@ static void scan_and_kill(void) /* Populate the victims array with tasks sorted by adj and then size */ pages_found = find_victims(&nr_found); - if (unlikely(!pages_found)) { + if (unlikely(!nr_found)) { pr_err("No processes available to kill!\n"); return; }