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:

committed by
Gerrit - the friendly Code Review server

parent
b4c9798b90
commit
7e2eb2118a
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user