提交 f66d5918 编写于 作者: X XueBing Chen 提交者: Vinod Koul

dmaengine: xilinx: use strscpy to replace strlcpy

The strlcpy should not be used because it doesn't limit the source
length. Preferred is strscpy.
Signed-off-by: NXueBing Chen <chenxuebing@jari.cn>
Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/39aa840f.e31.181ed9461c2.Coremail.chenxuebing@jari.cnSigned-off-by: NVinod Koul <vkoul@kernel.org>
上级 e0c7ea83
...@@ -376,7 +376,7 @@ static ssize_t xilinx_dpdma_debugfs_read(struct file *f, char __user *buf, ...@@ -376,7 +376,7 @@ static ssize_t xilinx_dpdma_debugfs_read(struct file *f, char __user *buf,
if (ret < 0) if (ret < 0)
goto done; goto done;
} else { } else {
strlcpy(kern_buff, "No testcase executed", strscpy(kern_buff, "No testcase executed",
XILINX_DPDMA_DEBUGFS_READ_MAX_SIZE); XILINX_DPDMA_DEBUGFS_READ_MAX_SIZE);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册