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

Commit 7e2eb211 authored by Vikram Panduranga's avatar Vikram Panduranga Committed by Gerrit - the friendly Code Review server
Browse files

dsp: voice_mhi: initialize pointer to NULL



Initialize pointer to NULL to avoid any access
to uninitialized value in case of a failure.

Change-Id: I81ecb76a30b481f57fd62448e954c227ffbc421f
Signed-off-by: default avatarVikram Panduranga <vpandura@codeaurora.org>
parent b4c9798b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -426,7 +426,7 @@ static int voice_mhi_pcie_up_callback(struct mhi_device *voice_mhi_dev,
static void voice_mhi_pcie_down_callback(struct mhi_device *voice_mhi_dev)
{
	dma_addr_t iova;
	struct device *md;
	struct device *md = NULL;

	mutex_lock(&voice_mhi_lcl.mutex);