]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: samsung: idma: Check of ioremap return value
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 28 Dec 2021 03:40:26 +0000 (11:40 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 29 Dec 2021 12:45:46 +0000 (12:45 +0000)
commit8887cc55d2f12bfcb7e2971ca511956e6d99914f
treef4dc5eb9ce2f9207ee69d4c9a3162181b110c24b
parent32a257414153e484f84de3c56807dcbf563820d9
ASoC: samsung: idma: Check of ioremap return value

Because of the potential failure of the ioremap(), the buf->area could
be NULL.
Therefore, we need to check it and return -ENOMEM in order to transfer
the error.

Fixes: a121f25149d6 ("ASoC: SAMSUNG: Add I2S0 internal dma driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20211228034026.1659385-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/idma.c