projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b9bda6
)
MLK-11915-05 ASoC: imx-wm8958: init codec_np to avoid wild pointer
author
Zidan Wang
<zidan.wang@freescale.com>
Fri, 27 Nov 2015 03:14:36 +0000
(11:14 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:18 +0000
(14:49 -0500)
init codec_np to avoid wild pointer. Reported by Coverity.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit
76665930654867cf38a86ba747a9f8a5bf2665e2
)
sound/soc/fsl/imx-wm8958.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/imx-wm8958.c
b/sound/soc/fsl/imx-wm8958.c
index
a5138c1
..
273a514
100644
(file)
--- 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;