net/ps3_gelic_net: Use dma_mapping_error
stable inclusion from stable-v5.10.177 commit 56e0bc4a72a09761ce438c0b38f5263a51582660 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=56e0bc4a72a09761ce438c0b38f5263a51582660 -------------------------------- [ Upstream commit bebe933d ] The current Gelic Etherenet driver was checking the return value of its dma_map_single call, and not using the dma_mapping_error() routine. Fixes runtime problems like these: DMA-API: ps3_gelic_driver sb_05: device driver failed to check map error WARNING: CPU: 0 PID: 0 at kernel/dma/debug.c:1027 .check_unmap+0x888/0x8dc Fixes: 02c18891 ("ps3: gigabit ethernet driver for PS3, take3") Reviewed-by:Alexander Duyck <alexanderduyck@fb.com> Signed-off-by:
Geoff Levand <geoff@infradead.org> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit 6891eeae)
Loading
Please sign in to comment