diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-10-07 12:19:53 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-07 18:51:39 -0400 |
commit | 960baba41f3cfb0a97bb1f0e720334156b2eff75 (patch) | |
tree | 1555916d86e92a7eb9051ce8f520260ccf3bc896 /sound | |
parent | a5448c88b812390a3622e76d774e10c0da1fb970 (diff) |
ASoC: imx-es8328: Fix of_node_put() call with uninitialized object
The of_node_put() calls in imx_es8328_probe() may take uninitialized
pointers when reached though the early error path. This patch adds
the proper NULL initialization for fixing these.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-es8328.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-es8328.c b/sound/soc/fsl/imx-es8328.c index 653e66d150c8..d6c55c88a069 100644 --- a/sound/soc/fsl/imx-es8328.c +++ b/sound/soc/fsl/imx-es8328.c | |||
@@ -78,7 +78,7 @@ static const struct snd_soc_dapm_widget imx_es8328_dapm_widgets[] = { | |||
78 | static int imx_es8328_probe(struct platform_device *pdev) | 78 | static int imx_es8328_probe(struct platform_device *pdev) |
79 | { | 79 | { |
80 | struct device_node *np = pdev->dev.of_node; | 80 | struct device_node *np = pdev->dev.of_node; |
81 | struct device_node *ssi_np, *codec_np; | 81 | struct device_node *ssi_np = NULL, *codec_np = NULL; |
82 | struct platform_device *ssi_pdev; | 82 | struct platform_device *ssi_pdev; |
83 | struct imx_es8328_data *data; | 83 | struct imx_es8328_data *data; |
84 | u32 int_port, ext_port; | 84 | u32 int_port, ext_port; |