PCI: dwc: Fix setting error return on MSI DMA mapping failure
stable inclusion from stable-v5.10.121 commit acd99f384cb303bf8b7bb6fa5884e9fd26b69855 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=acd99f384cb303bf8b7bb6fa5884e9fd26b69855 -------------------------------- [ Upstream commit 88557685 ] When dma_mapping_error() returns error because of no enough memory, but dw_pcie_host_init() returns success, which will mislead the callers. Link: https://lore.kernel.org/r/30170911-0e2f-98ce-9266-70465b9073e5@huawei.com Fixes: 07940c36 ("PCI: dwc: Fix MSI page leakage in suspend/resume") Signed-off-by: NJianrong Zhang <zhangjianrong5@huawei.com> Signed-off-by: NJiantao Zhang <water.zhangjiantao@huawei.com> Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: NRob Herring <robh@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录