From cf5557a95da4af6b1913fe9e14f1fe7d73e01de5 Mon Sep 17 00:00:00 2001 From: Zidan Wang Date: Fri, 27 Nov 2015 14:44:51 +0800 Subject: [PATCH] MLK-11915-08 ASoC: imx-si476x: init fm_np to avoid wild pointer init fm_np to avoid wild pointer. Reported by Coverity. Signed-off-by: Zidan Wang (cherry picked from commit dea49f320f33e1f723301a0bfa18573c0f7b5fb1) --- sound/soc/fsl/imx-si476x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-si476x.c b/sound/soc/fsl/imx-si476x.c index ea9edba6f6e1..f40280a39c0a 100644 --- 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); -- 2.17.1