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

Commit d77f1ea1 authored by Alok Chauhan's avatar Alok Chauhan
Browse files

msm: camera: ope: Initialize ope hw mutex structure



Initialize ope HW mutex structure during top init.
otherwise it will lead to NULL pointer dereference.

CRs-Fixed: 2609594
Change-Id: I118ea9e9a63d69e12207252687e7af30cfa0754b
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent ba1d3a03
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ static int cam_ope_top_init(struct ope_hw *ope_hw_info,

	top_reg->base = dev_init->core_info->ope_hw_info->ope_top_base;

	mutex_init(&ope_top_info.ope_hw_mutex);
	/* OPE SW RESET */
	init_completion(&ope_top_info.reset_complete);