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)
commit3ecb46755eb85456b459a1a9f952c52986bce8ec
treef4dc5eb9ce2f9207ee69d4c9a3162181b110c24b
parent3667a037e50a31555276a7989435126e501f0f15
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: f09aecd50f39 ("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