diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-11-27 11:14:36 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:50:01 +0800 |
commit | 61d25ac27ef4050326085f5de7321488272862fa (patch) | |
tree | eba78833f65ba30b10fc3c94bd9b1c9a98232012 /sound/soc/fsl/imx-wm8958.c | |
parent | 2bd402ba2f450671147a7eb5ac11ea2437e8fddb (diff) |
MLK-11915-05 ASoC: imx-wm8958: init codec_np to avoid wild pointer
init codec_np to avoid wild pointer. Reported by Coverity.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit 76665930654867cf38a86ba747a9f8a5bf2665e2)
Diffstat (limited to 'sound/soc/fsl/imx-wm8958.c')
-rw-r--r-- | sound/soc/fsl/imx-wm8958.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-wm8958.c b/sound/soc/fsl/imx-wm8958.c index 74486f0dded9..047bdf9e70bb 100644 --- a/sound/soc/fsl/imx-wm8958.c +++ b/sound/soc/fsl/imx-wm8958.c @@ -403,7 +403,7 @@ static int imx_wm8958_set_bias_level_post(struct snd_soc_card *card, static int imx_wm8958_probe(struct platform_device *pdev) { - struct device_node *cpu_np, *codec_np, *gpr_np; + struct device_node *cpu_np, *codec_np = NULL, *gpr_np; struct device_node *np = pdev->dev.of_node; struct platform_device *cpu_pdev; struct imx_priv *priv = &card_priv; |