mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "msm: camera: reqmgr: check validity of last_applied_idx" into camera-kernel.lnx.4.0
This commit is contained in:
commit
b37352f969
1 changed files with 3 additions and 1 deletions
|
|
@ -2072,7 +2072,9 @@ static int __cam_req_mgr_process_sof_freeze(void *priv, void *data)
|
|||
in_q = link->req.in_q;
|
||||
if (in_q) {
|
||||
mutex_lock(&link->req.lock);
|
||||
last_applied_req_id = in_q->slot[in_q->last_applied_idx].req_id;
|
||||
if (in_q->last_applied_idx >= 0)
|
||||
last_applied_req_id =
|
||||
in_q->slot[in_q->last_applied_idx].req_id;
|
||||
mutex_unlock(&link->req.lock);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue