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

Commit 6721b607 authored by Abhilash Kumar's avatar Abhilash Kumar
Browse files

msm: camera: isp: Initialize isp_dev's mutex



Accessing uninitialized mutex is not recommended.
Prevent such handling by initializing the mutex
during probe.

Change-Id: Iff3bc8d390fe59f5fc71cdadfa53e66077b59e1b
Signed-off-by: default avatarAbhilash Kumar <krabhi@codeaurora.org>
parent 3a4392ac
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -167,6 +167,8 @@ static int cam_isp_dev_probe(struct platform_device *pdev)
	cam_smmu_set_client_page_fault_handler(iommu_hdl,
		cam_isp_dev_iommu_fault_handler, node);

	mutex_init(&g_isp_dev.isp_mutex);

	CAM_INFO(CAM_ISP, "Camera ISP probe complete");

	return 0;