]> git.baikalelectronics.ru Git - kernel.git/commit
atm: eni: Add check for dma_map_single
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Mon, 14 Mar 2022 01:34:48 +0000 (09:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Mar 2022 11:01:52 +0000 (11:01 +0000)
commitab2425d1d5189cae881488259dd916ff221aa428
tree11c98c1aa865bb6e2e1c8a09923acbff4c0117ad
parent50c525ed89bce6cd7dc355408f928f9f087374c1
atm: eni: Add check for dma_map_single

As the potential failure of the dma_map_single(),
it should be better to check it and return error
if fails.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/eni.c