linux_dsm_epyc7002/sound/soc/fsl
Dan Carpenter a9d2736714
ASoC: fsl_mqs: Fix error handling in probe
There are several problems in the error handling in fsl_mqs_probe().

1) "ret" isn't initialized on some paths.  GCC has a feature which
   warns about uninitialized variables but the code initializes "ret"
   to zero at the start of the function so the checking is turned off.
2) "gpr_np" is a pointer so initializing it to zero is confusing and
   generates a Sparse warning.
3) of_parse_phandle() doesn't return error pointers on error, it returns
   NULL.
4) If devm_snd_soc_register_component() fails then the function should
   free the "gpr_np".

Fixes: 9e28f6532c ("ASoC: fsl_mqs: Add MQS component driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20191004102208.GB823@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-10-07 13:53:23 +01:00
..
efika-audio-fabric.c
eukrea-tlv320.c ASoC: fsl: eukrea-tlv320: consider CPU-Platform possibility 2019-06-28 15:11:07 +01:00
fsl_asrc_dma.c ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8 2019-10-01 12:19:34 +01:00
fsl_asrc.c ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8 2019-10-01 12:19:34 +01:00
fsl_asrc.h ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8 2019-10-01 12:19:34 +01:00
fsl_audmix.c ASoC: fsl_audmix: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:04:59 +01:00
fsl_audmix.h
fsl_dma.c
fsl_dma.h
fsl_esai.c ASoC: fsl_esai: Add compatible string for imx6ull 2019-08-12 14:01:10 +01:00
fsl_esai.h
fsl_micfil.c
fsl_micfil.h
fsl_mqs.c ASoC: fsl_mqs: Fix error handling in probe 2019-10-07 13:53:23 +01:00
fsl_sai.c ASoC: fsl_sai: Fix noise when using EDMA 2019-09-17 16:56:19 +01:00
fsl_sai.h ASoC: fsl_sai: Fix noise when using EDMA 2019-09-17 16:56:19 +01:00
fsl_spdif.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
fsl_spdif.h
fsl_ssi_dbg.c ASoC: fsl: no need to check return value of debugfs_create functions 2019-06-14 16:37:48 +01:00
fsl_ssi.c Merge branch 'asoc-5.4' into asoc-next 2019-09-15 10:31:44 +01:00
fsl_ssi.h ASoC: fsl: no need to check return value of debugfs_create functions 2019-06-14 16:37:48 +01:00
fsl_utils.c
fsl_utils.h
fsl-asoc-card.c ASoC: fsl: fsl-asoc-card: consider CPU-Platform possibility 2019-06-28 15:11:17 +01:00
imx-audmix.c ASoC: imx-audmix: register the card on a proper dev 2019-08-27 11:44:39 +01:00
imx-audmux.c Merge branch 'asoc-5.3' into asoc-5.4 2019-08-20 18:28:43 +01:00
imx-audmux.h
imx-es8328.c ASoC: fsl: imx-es8328: consider CPU-Platform possibility 2019-06-28 15:11:38 +01:00
imx-mc13783.c ASoC: fsl: imx-mc13783: use modern dai_link style 2019-06-06 21:43:33 +01:00
imx-pcm-dma.c
imx-pcm-fiq.c
imx-pcm.h
imx-sgtl5000.c ASoC: fsl: imx-sgtl5000: consider CPU-Platform possibility 2019-06-28 15:11:59 +01:00
imx-spdif.c ASoC: fsl: imx-spdif: consider CPU-Platform possibility 2019-06-28 15:12:19 +01:00
imx-ssi.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
imx-ssi.h
Kconfig ASoC: fsl_mqs: Add MQS component driver 2019-10-01 12:08:38 +01:00
Makefile ASoC: fsl_mqs: Add MQS component driver 2019-10-01 12:08:38 +01:00
mpc5200_dma.c
mpc5200_dma.h
mpc5200_psc_ac97.c
mpc5200_psc_i2s.c
mpc8610_hpcd.c
mx27vis-aic32x4.c
p1022_ds.c
p1022_rdk.c
pcm030-audio-fabric.c ASoC: fsl: pcm030-audio-fabric: use modern dai_link style 2019-06-06 21:43:43 +01:00
phycore-ac97.c
wm1133-ev1.c