aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXueBing Chen <chenxuebing@jari.cn>2022-07-11 22:05:33 +0800
committerVinod Koul <vkoul@kernel.org>2022-07-21 19:04:35 +0530
commitf66d59180bae2f0e8979962c3df4d445b3ac50d0 (patch)
tree80a6ed7c620d9375e9e698a0569d8a4b71a36864
parentdmaengine: imx-sdma: Add FIFO stride support for multi FIFO script (diff)
downloadlinux-dev-f66d59180bae2f0e8979962c3df4d445b3ac50d0.tar.xz
linux-dev-f66d59180bae2f0e8979962c3df4d445b3ac50d0.zip
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: XueBing Chen <chenxuebing@jari.cn> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://lore.kernel.org/r/39aa840f.e31.181ed9461c2.Coremail.chenxuebing@jari.cn Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--drivers/dma/xilinx/xilinx_dpdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/xilinx/xilinx_dpdma.c b/drivers/dma/xilinx/xilinx_dpdma.c
index f708808d73ba..84dc5240a807 100644
--- a/drivers/dma/xilinx/xilinx_dpdma.c
+++ b/drivers/dma/xilinx/xilinx_dpdma.c
@@ -376,7 +376,7 @@ static ssize_t xilinx_dpdma_debugfs_read(struct file *f, char __user *buf,
if (ret < 0)
goto done;
} else {
- strlcpy(kern_buff, "No testcase executed",
+ strscpy(kern_buff, "No testcase executed",
XILINX_DPDMA_DEBUGFS_READ_MAX_SIZE);
}