From: Nikita Kalyazin Date: Sun, 7 Jul 2013 10:06:13 +0000 (+0400) Subject: [FIX] add check for system cpu freq X-Git-Tag: Tizen_SDK_2.3~275 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ea66357e92d145de8a0c0ac0f2a0a53a61222c9;p=platform%2Fcore%2Fsystem%2Fswap-manager.git [FIX] add check for system cpu freq --- diff --git a/daemon/sys_stat.c b/daemon/sys_stat.c index 8d23415..61f3dc0 100644 --- a/daemon/sys_stat.c +++ b/daemon/sys_stat.c @@ -2022,7 +2022,10 @@ int get_system_info(struct system_info_t *sys_info, int* pidarray, int pidcount) } // update cpu freq - update_system_cpu_frequency(event_num); + if (update_system_cpu_frequency(event_num) < 0) { + LOGE("Failed to update system cpu freq data\n"); + goto fail_exit; + } // memory data is changed slowly and variance is not remarkable // so memory data is less related with timestamp then cpu data