WSL2-Linux-Kernel/drivers/net/ethernet/natsemi
Zhang Changzhong c7037dea19 net/sonic: use dma_mapping_error() for error check
[ Upstream commit 4107b8746d ]

The DMA address returned by dma_map_single() should be checked with
dma_mapping_error(). Fix it accordingly.

Fixes: efcce83936 ("[PATCH] macsonic/jazzsonic network drivers update")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/6645a4b5c1e364312103f48b7b36783b94e197a2.1679370343.git.fthain@linux-m68k.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-30 12:47:48 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
jazzsonic.c natsemi: sonic: stop calling netdev_boot_setup_check 2021-08-03 13:05:25 +01:00
macsonic.c nubus: Make struct nubus_driver::remove return void 2021-07-28 15:33:59 +02:00
natsemi.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-05 15:08:47 -07:00
ns83820.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
sonic.c net/sonic: use dma_mapping_error() for error check 2023-03-30 12:47:48 +02:00
sonic.h net: natsemi: Replace in_interrupt() usage. 2020-09-29 14:02:54 -07:00
xtsonic.c natsemi: xtensa: fix section mismatch warnings 2021-12-08 09:04:46 +01:00