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

Commit cd8051d1 authored by Sujeev Dias's avatar Sujeev Dias
Browse files

mhi: core: initialize MHI lpm_mutex before use



Initialize the mutex to avoid null ptr access during
usage.

CRs-Fixed: 2432460
Change-Id: Iedc6152b9616b825e31efab61d699a613cc73ac9
Acked-by: default avatarBhaumik Vasav Bhatt <bbhatt@qti.qualcomm.com>
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 5f26f1f7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -549,6 +549,7 @@ int mhi_init_timesync(struct mhi_controller *mhi_cntrl)
		return -ENOMEM;

	spin_lock_init(&mhi_tsync->lock);
	mutex_init(&mhi_tsync->lpm_mutex);
	INIT_LIST_HEAD(&mhi_tsync->head);
	init_completion(&mhi_tsync->completion);