lmkd: Fix lowmem_minfree out of bounds am: cf8af501dc am: 53df06cdf1 am: 986595819d

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

Change-Id: Idd0176344f3d3a96cb972dd695ade200c1013a15
This commit is contained in:
liuhailong 2021-12-07 03:23:35 +00:00 committed by Automerger Merge Worker
commit 0ea9a37079
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 (debug_process_killing) {
if (debug_process_killing && lowmem_targets_size) {
ALOGI("Ignore %s memory pressure event "
"(free memory=%ldkB, cache=%ldkB, limit=%ldkB)",
level_name[level], other_free * page_k, other_file * page_k,