]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: coda/imx-vdoa: Handle dma_set_coherent_mask error codes
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Mon, 6 Dec 2021 02:22:01 +0000 (03:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:04:19 +0000 (09:04 +0100)
commit354a90406adf74ec26edb341bb81450dbcf57592
tree0b2fe1b10763b6267788a18b2cb5f2e970c31ad1
parent2f8a8a145cb003f7a38e11afbb202f43673e0d4e
media: coda/imx-vdoa: Handle dma_set_coherent_mask error codes

[ Upstream commit 43f0633f89947df57fe0b5025bdd741768007708 ]

The return value of dma_set_coherent_mask() is not always 0.
To catch the exception in case that dma is not support the mask.

Link: https://lore.kernel.org/linux-media/20211206022201.1639460-1-jiasheng@iscas.ac.cn
Fixes: b0444f18e0b1 ("[media] coda: add i.MX6 VDOA driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/coda/imx-vdoa.c