commit | 522103525ef510382bcbf09bfc0fecfeb1090bcc | [log] [tgz] |
---|---|---|
author | jb.qi <jb.qi@mobiletek.cn> | Tue Sep 19 23:29:09 2023 -0700 |
committer | jb.qi <jb.qi@mobiletek.cn> | Tue Sep 19 23:29:09 2023 -0700 |
tree | da3a9ee146f345e67b0848299ac088dcf0bfdd3d | |
parent | 68fe7783a87fae107c8ab644ae9e482adb725f4b [diff] [blame] |
[BUGFIX][ZXW-223][AUTOSUSPEND]fix delete lock but not unlock Only Configure:No Affected branch:master Affected module:autosuspend Is it affected on both ZXIC and MTK: only ZXIC Self-test: Yes Doc Update:Yes Change-Id: I4b90ee193b0c24b4dd7716443a5a6a4c6c84d049
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp index 2a5ff52..04b2ad0 100755 --- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp +++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
@@ -344,7 +344,14 @@ { return E_INPUT_ERROR; } - ret = delete_lock(fd); + ret = qser_wakelock_unlock(fd); + if(ret) + { + LYINFLOG("unlock is fail\n"); + return ret; + } + + ret = delete_lock(fd); return ret; }