Commit 49dc7a16 authored by Jack Wang's avatar Jack Wang Committed by Jialin Zhang
Browse files

mailbox: bcm-ferxrm-mailbox: Fix error check for dma_map_sg

stable inclusion
from stable-v5.10.150
commit 44c26ceffaa39029336f83010978f380767b2620
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=44c26ceffaa39029336f83010978f380767b2620



--------------------------------

[ Upstream commit 6b207ce8 ]

dma_map_sg return 0 on error, fix the error check, and return -EIO
to caller.

Fixes: dbc049ee ("mailbox: Add driver for Broadcom FlexRM ring manager")
Signed-off-by: default avatarJack Wang <jinpu.wang@ionos.com>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent f4bed448
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment