From: Abhishek Kondaveeti Date: Thu, 10 Dec 2015 12:41:56 +0000 (+0530) Subject: msm: isp: Initialize buffer spin lock X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9c23d30f6033eaa1780c2a85c1b9e499cb441329;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git msm: isp: Initialize buffer spin lock Initialize buffer manager spin lock before using it Change-Id: Icef09e9d40bbbe66e90c162dd0ae2f1733ae9a06 Signed-off-by: Abhishek Kondaveeti --- 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;