diff options
author | Kuninori Morimoto | 2017-11-06 02:07:27 +0100 |
---|---|---|
committer | Mark Brown | 2017-11-06 12:29:44 +0100 |
commit | c409c2a963475f0288ba3bb47a10f04f6441ffb9 (patch) | |
tree | ed4a7643d0af85293058c11c1987aad889bdfe10 /arch/sparc/include/asm/pgtable_64.h | |
parent | ASoC: rsnd: remove NULL check from rsnd_mod_name()/rsnd_mod_id() (diff) | |
download | kernel-qcow2-linux-c409c2a963475f0288ba3bb47a10f04f6441ffb9.tar.gz kernel-qcow2-linux-c409c2a963475f0288ba3bb47a10f04f6441ffb9.tar.xz kernel-qcow2-linux-c409c2a963475f0288ba3bb47a10f04f6441ffb9.zip |
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 edce5c496c6a ("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>
Diffstat (limited to 'arch/sparc/include/asm/pgtable_64.h')
0 files changed, 0 insertions, 0 deletions