net/sonic: use dma_mapping_error() for error check
stable inclusion from stable-v5.10.177 commit 73db80dcdc20aceda0c6251f6b1289d7ae297b0d 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=73db80dcdc20aceda0c6251f6b1289d7ae297b0d -------------------------------- [ Upstream commit 4107b874 ] The DMA address returned by dma_map_single() should be checked with dma_mapping_error(). Fix it accordingly. Fixes: efcce839 ("[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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit a2f55f04)
Loading
Please sign in to comment