]> git.baikalelectronics.ru Git - kernel.git/commit
uio: uio_dmem_genirq: Catch the Exception
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Sat, 4 Dec 2021 00:03:26 +0000 (08:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Dec 2021 13:25:00 +0000 (14:25 +0100)
commitc8884a11e2455c875543fc1ab05feff6e18c87e7
tree8486945ad7fe5f4126d56c75a3ea5355e677e818
parent43c83d12262136c00216b7826816c29887d5b2f3
uio: uio_dmem_genirq: Catch the Exception

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.

Fixes: 5c6915d927a9 ("Add new uio device for dynamic memory allocation")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20211204000326.1592687-1-jiasheng@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_dmem_genirq.c