提交 75301ef9 编写于 作者: S Swati Agarwal 提交者: Jialin Zhang

dmaengine: xilinx_dma: cleanup for fetching xlnx,num-fstores property

stable inclusion
from stable-v5.10.148
commit e0ca2998dfba40bcc504ca6a4f55d2599a38ae4a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0WL

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

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

[ Upstream commit 462bce79 ]

Free the allocated resources for missing xlnx,num-fstores property.
Signed-off-by: NSwati Agarwal <swati.agarwal@xilinx.com>
Link: https://lore.kernel.org/r/20220817061125.4720-3-swati.agarwal@xilinx.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 554f1e66
......@@ -3051,7 +3051,7 @@ static int xilinx_dma_probe(struct platform_device *pdev)
if (err < 0) {
dev_err(xdev->dev,
"missing xlnx,num-fstores property\n");
return err;
goto disable_clks;
}
err = of_property_read_u32(node, "xlnx,flush-fsync",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册