mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
fix null pointer at quota_day_store
Change-Id: I660fbdb63fe9b005472c6ac61dc5cffdbd1972a1 Signed-off-by: huangzq2 <huangzq2@motorola.com> Reviewed-on: https://gerrit.mot.com/2786068 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
a7dc815fa5
commit
8f89498e79
1 changed files with 3 additions and 1 deletions
|
|
@ -4091,7 +4091,9 @@ void hybridswap_set_quota_day(unsigned long val)
|
|||
|
||||
// reset reclaimin_bytes_daily when set quota, so we can only
|
||||
// set quota once per day.
|
||||
atomic64_set(&stat->reclaimin_bytes_daily, 0);
|
||||
if (stat) {
|
||||
atomic64_set(&stat->reclaimin_bytes_daily, 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool hybridswap_reach_life_protect(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue