mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
a5448c88b8
commit
960baba41f
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ static const struct snd_soc_dapm_widget imx_es8328_dapm_widgets[] = {
|
|||
static int imx_es8328_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
struct device_node *ssi_np, *codec_np;
|
||||
struct device_node *ssi_np = NULL, *codec_np = NULL;
|
||||
struct platform_device *ssi_pdev;
|
||||
struct imx_es8328_data *data;
|
||||
u32 int_port, ext_port;
|
||||
|
|
Loading…
Add table
Reference in a new issue