spi: spi-zynqmp-gqspi: Handle error for dma_set_mask
stable inclusion from stable-v5.10.110 commit b7940bef6f21f23955661d476c9760e6b046d21b bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b7940bef6f21f23955661d476c9760e6b046d21b -------------------------------- [ Upstream commit 13262fc2 ] As the potential failure of the dma_set_mask(), it should be better to check it and return error if fails. Fixes: 126bdb60 ("spi: spi-zynqmp-gqspi: return -ENOMEM if dma_map_single fails") Signed-off-by: NJiasheng Jiang <jiasheng@iscas.ac.cn> Link: https://lore.kernel.org/r/20220302092051.121343-1-jiasheng@iscas.ac.cnSigned-off-by: NMark Brown <broonie@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYu Liao <liaoyu15@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录