From: Zidan Wang Date: Fri, 27 Nov 2015 06:44:51 +0000 (+0800) Subject: MLK-11915-08 ASoC: imx-si476x: init fm_np to avoid wild pointer X-Git-Tag: C0P2-H0.0--20200415~4003 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=cf5557a95da4af6b1913fe9e14f1fe7d73e01de5;p=linux.git 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) --- 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);