heart-battery: Get lock before accessing critical section 00/306600/5
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 22 Feb 2024 09:01:21 +0000 (18:01 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Tue, 5 Mar 2024 12:09:41 +0000 (21:09 +0900)
commit3aa5b490a3e3c4c58113fb129f7b5911372f2fae
tree39ff5c5510b3b31a83c979e24f6ac4ccb4c16539
parent0a753019e528a7a6f069b842436b294022e0cd23
heart-battery: Get lock before accessing critical section

Get lock before accessing module->cache and
release lock after finishing aceess of module->cache.

This problem is reported in coverity with 1746676 id.

Change-Id: I0e706bf138f5cdc5e8463da255902ddc49dabf45
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-monitor/heart-battery.c