heart-cpu: Remove double unlock code 08/309808/1 accepted/tizen/7.0/unified/20240417.161136
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:19:09 +0000 (13:19 +0900)
commit67dc56764e27b06454707e5e9e4d0467451ebdbd
tree3f5dc0ba151384c46955319d0e89cb92bcb1378d
parentee58cacfda72154e8bccb5baa538d2d410ee3de9
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