lmkd: Fix a comparison operation with uninitialized variable. am: f70a8a260f am: 1c09b504c8 am: 48e232df6a am: c0f9ea88cc am: af1c7d5046
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2073128 Change-Id: I1c51e854669826df6136dccc40bf4eaf30216789 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
2ae0f8f153
3
lmkd.cpp
3
lmkd.cpp
|
|
@ -3565,7 +3565,8 @@ static void call_handler(struct event_handler_info* handler_info,
|
|||
resume_polling(poll_params, curr_tm);
|
||||
break;
|
||||
case POLLING_DO_NOT_CHANGE:
|
||||
if (get_time_diff_ms(&poll_params->poll_start_tm, &curr_tm) > PSI_WINDOW_SIZE_MS) {
|
||||
if (poll_params->poll_handler &&
|
||||
get_time_diff_ms(&poll_params->poll_start_tm, &curr_tm) > PSI_WINDOW_SIZE_MS) {
|
||||
/* Polled for the duration of PSI window, time to stop */
|
||||
poll_params->poll_handler = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue