linux/sound/soc/sh
Kuninori Morimoto c409c2a963
ASoC: rsnd: return -EIO if rsnd_dmaen_request_channel() failed
PTR_ERR(NULL) is success. Normally when a function returns both NULL
and error pointers, it means that NULL is not a error.
But, rsnd_dmaen_request_channel() returns NULL if requested resource
was failed.
Let's return -EIO if rsnd_dmaen_request_channel() was failed on
rsnd_dmaen_nolock_start().
This patch fixes commit edce5c496c ("ASoC: rsnd: Request/Release DMA
channel eachtime")

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-11-06 11:29:44 +00:00
..
rcar ASoC: rsnd: return -EIO if rsnd_dmaen_request_channel() failed 2017-11-06 11:29:44 +00:00
dma-sh7760.c ASoC: sh: make snd_pcm_hardware const 2017-08-17 17:57:21 +01:00
fsi.c Merge remote-tracking branches 'asoc/topic/dwc', 'asoc/topic/es8316', 'asoc/topic/fsi', 'asoc/topic/fsl' and 'asoc/topic/hdmi' into asoc-next 2017-09-01 12:12:36 +01:00
hac.c ASoC: sh: hac: add missing "int ret" 2017-07-24 13:06:53 +01:00
Kconfig ASoC: rsnd: add HDMI output support 2017-05-19 18:36:25 +01:00
Makefile ASoC: add Renesas R-Car core feature 2013-07-28 19:34:09 +01:00
migor.c ASoC: sh: make snd_soc_ops const 2017-08-17 18:09:48 +01:00
sh7760-ac97.c ASoC: sh: Add .owner to struct snd_soc_card 2011-12-23 11:32:07 +00:00
siu_dai.c ASoC: sh: make snd_pcm_hardware const 2017-08-17 17:57:21 +01:00
siu_pcm.c ASoC: sh: constify snd_pcm_ops structures 2017-08-14 17:23:43 +01:00
siu.h ASoC: Do not include soc-dai.h 2010-11-22 14:04:53 +00:00
ssi.c ASoC: sh: ssi: Convert to devm_snd_soc_register_component 2015-08-28 17:28:49 +01:00