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: Vikram Panduranga <vpandura@codeaurora.org>
This commit is contained in:
Vikram Panduranga
2019-03-27 14:49:25 -07:00
committed by Gerrit - the friendly Code Review server
orang tua b4c9798b90
melakukan 7e2eb2118a

Melihat File

@@ -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);