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

Commit 3f935969 authored by Alok Pandey's avatar Alok Pandey
Browse files

msm: camera: isp: Protecting list during flush operation



Protecting free_req_list when adding a request to it.

Change-Id: Ie9b0986a1cffc4725a2253095219b289f7db8891
Signed-off-by: default avatarAlok Pandey <akumarpa@codeaurora.org>
parent cf97354e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1187,7 +1187,9 @@ static int __cam_isp_ctx_flush_req(struct cam_context *ctx,
				req_isp->fence_map_out[i].sync_id = -1;
			}
		}
		spin_lock_bh(&ctx->lock);
		list_add_tail(&req->list, &ctx->free_req_list);
		spin_unlock_bh(&ctx->lock);
	}

	if (flush_req->type == CAM_REQ_MGR_FLUSH_TYPE_CANCEL_REQ &&