heart-cpu: Remove double unlock code 07/309807/1 accepted/tizen/8.0/unified/20240417.155223
authorUnsung Lee <unsung.lee@samsung.com>
Tue, 16 Apr 2024 10:17:09 +0000 (19:17 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 17 Apr 2024 04:18:20 +0000 (13:18 +0900)
commit0e22b642390204a01617e2424116cfc60953c95c
tree87f437df75d24a82d8dfb7e4940583ba7c99c192
parentc9b3f2203a004b9a002410ade67aaa5f2ff049ed
heart-cpu: Remove double unlock code

Rmove double unlock code (i.e., unlock after unlock without getting lock).
It causes undefined behavior, so it must be removed.

This problem is reported by Coverity with id = 1750882.

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