From 9c23d30f6033eaa1780c2a85c1b9e499cb441329 Mon Sep 17 00:00:00 2001 From: Abhishek Kondaveeti Date: Thu, 10 Dec 2015 18:11:56 +0530 Subject: [PATCH] msm: isp: Initialize buffer spin lock Initialize buffer manager spin lock before using it Change-Id: Icef09e9d40bbbe66e90c162dd0ae2f1733ae9a06 Signed-off-by: Abhishek Kondaveeti --- drivers/media/platform/msm/camera_v2/isp/msm_buf_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_buf_mgr.c b/drivers/media/platform/msm/camera_v2/isp/msm_buf_mgr.c index f7889817e1ad..609ecbf0dc84 100644 --- a/drivers/media/platform/msm/camera_v2/isp/msm_buf_mgr.c +++ b/drivers/media/platform/msm/camera_v2/isp/msm_buf_mgr.c @@ -1016,7 +1016,7 @@ static int msm_isp_request_bufq(struct msm_isp_buf_mgr *buf_mgr, msm_isp_free_bufq_handle(buf_mgr, buf_request->handle); return rc; } - + spin_lock_init(&bufq->bufq_lock); bufq->bufq_handle = buf_request->handle; bufq->session_id = buf_request->session_id; bufq->stream_id = buf_request->stream_id; -- 2.11.0