Merge "msm: ais: isp: Handling buffer use after getting it freed"
This commit is contained in:
commit
c8ca44d520
1 changed files with 2 additions and 0 deletions
|
@ -1097,8 +1097,10 @@ int msm_vfe47_start_fetch_engine_multi_pass(struct vfe_device *vfe_dev,
|
|||
fe_cfg->stream_id);
|
||||
vfe_dev->fetch_engine_info.bufq_handle = bufq_handle;
|
||||
|
||||
mutex_lock(&vfe_dev->buf_mgr->lock);
|
||||
rc = vfe_dev->buf_mgr->ops->get_buf_by_index(
|
||||
vfe_dev->buf_mgr, bufq_handle, fe_cfg->buf_idx, &buf);
|
||||
mutex_unlock(&vfe_dev->buf_mgr->lock);
|
||||
if (rc < 0 || !buf) {
|
||||
pr_err("%s: No fetch buffer rc= %d buf= %pK\n",
|
||||
__func__, rc, buf);
|
||||
|
|
Loading…
Add table
Reference in a new issue