Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba43913f authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: jpeg: Add mutex lock to protect jpeg list corruption" into...

Merge "msm: camera: jpeg: Add mutex lock to protect jpeg list corruption" into camera-kernel.lnx.3.1
parents 28dc32f1 483aaf98
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -177,7 +177,9 @@ static int cam_jpeg_mgr_process_irq(void *priv, void *data)
		PTR_TO_U64(p_cfg_req->hw_cfg_args.priv);
	ctx_data->ctxt_event_cb(ctx_data->context_priv, 0, &buf_data);

	mutex_lock(&g_jpeg_hw_mgr.hw_mgr_mutex);
	list_add_tail(&p_cfg_req->list, &hw_mgr->free_req_list);
	mutex_unlock(&g_jpeg_hw_mgr.hw_mgr_mutex);
	return rc;
}