lmkd: Fix lowmem_minfree out of bounds am: cf8af501dc

Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1908669

Change-Id: Ie928b2d3c3882dafcf591a0487eb73c0d3b0b73a
This commit is contained in:
liuhailong 2021-12-07 02:52:13 +00:00 committed by Automerger Merge Worker
commit 53df06cdf1
1 changed files with 1 additions and 1 deletions

View File

@ -2840,7 +2840,7 @@ static void mp_event_common(int data, uint32_t events, struct polling_params *po
} }
if (min_score_adj == OOM_SCORE_ADJ_MAX + 1) { if (min_score_adj == OOM_SCORE_ADJ_MAX + 1) {
if (debug_process_killing) { if (debug_process_killing && lowmem_targets_size) {
ALOGI("Ignore %s memory pressure event " ALOGI("Ignore %s memory pressure event "
"(free memory=%ldkB, cache=%ldkB, limit=%ldkB)", "(free memory=%ldkB, cache=%ldkB, limit=%ldkB)",
level_name[level], other_free * page_k, other_file * page_k, level_name[level], other_free * page_k, other_file * page_k,