resourced-cpu-boosting: Check return value of funcs of resource-monitor 67/298767/4 accepted/tizen/8.0/unified/20231005.093834 accepted/tizen/unified/20230914.164939 tizen_8.0_m2_release
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 13 Sep 2023 02:17:11 +0000 (11:17 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Thu, 14 Sep 2023 02:05:47 +0000 (11:05 +0900)
commitc76353f05ca55de6d3e85a23bfebac7809f6ac72
treeae1289e9c79e37168589e4587b8a7037758731e9
parent16afd4f811379bf89faf1c4f3072b0420d9661c3
resourced-cpu-boosting: Check return value of funcs of resource-monitor

Check return value of functions of resource-monitor
to avoid passing negative value to a parameter that cannot be negative.

It solves the issue reported by Coverity with cid = 1708157

Change-Id: I975c3e9c31dd0240604ad64878cd21e80b2f4c4f
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resourced-cpu-boosting/resourced-cpu-boosting.c