aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXueBing Chen <[email protected]>2022-07-11 22:05:33 +0800
committerVinod Koul <[email protected]>2022-07-21 19:04:35 +0530
commitf66d59180bae2f0e8979962c3df4d445b3ac50d0 (patch)
tree80a6ed7c620d9375e9e698a0569d8a4b71a36864
parente0c7ea83f006ce8c3264ef8b6508a891d886ad4f (diff)
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 <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
-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);
}