Fix check_async_call_rate() 62/244662/5
authorHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 23 Sep 2020 05:00:50 +0000 (14:00 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 23 Sep 2020 05:22:49 +0000 (14:22 +0900)
commit9a2ed2843c9ebe457cec286a63ef826b977242bb
tree6d94cb1bcafe2668e7e30319e94d3c523d63ce69
parent25acd3b09e62a5cdb6fd998621412dc737ff7945
Fix check_async_call_rate()

This is to prevent a broken pair of lock/release by check_async_call_rate()
Do not invoke device_power_release_lock(type) unless the type is locked.

Change-Id: I4cb8517fd5abce72ba0b9c405434706f64db10b9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
src/power.c