projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f2719
)
MLK-11915-08 ASoC: imx-si476x: init fm_np to avoid wild pointer
author
Zidan Wang
<zidan.wang@freescale.com>
Fri, 27 Nov 2015 06:44:51 +0000
(14:44 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:18 +0000
(14:49 -0500)
init fm_np to avoid wild pointer. Reported by Coverity.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit
dea49f320f33e1f723301a0bfa18573c0f7b5fb1
)
sound/soc/fsl/imx-si476x.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/imx-si476x.c
b/sound/soc/fsl/imx-si476x.c
index
ea9edba
..
f40280a
100644
(file)
--- a/
sound/soc/fsl/imx-si476x.c
+++ b/
sound/soc/fsl/imx-si476x.c
@@
-106,7
+106,7
@@
static int imx_si476x_probe(struct platform_device *pdev)
struct device_node *ssi_np, *np = pdev->dev.of_node;
struct platform_device *ssi_pdev;
struct i2c_client *fm_dev;
- struct device_node *fm_np;
+ struct device_node *fm_np
= NULL
;
int int_port, ext_port, ret;
ret = of_property_read_u32(np, "mux-int-port", &int_port);