Skip to content

Commit f66d591

Browse files
XueBing Chenvinodkoul
authored andcommitted
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>
1 parent e0c7ea8 commit f66d591

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/dma/xilinx/xilinx_dpdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static ssize_t xilinx_dpdma_debugfs_read(struct file *f, char __user *buf,
376376
if (ret < 0)
377377
goto done;
378378
} else {
379-
strlcpy(kern_buff, "No testcase executed",
379+
strscpy(kern_buff, "No testcase executed",
380380
XILINX_DPDMA_DEBUGFS_READ_MAX_SIZE);
381381
}
382382

0 commit comments

Comments
 (0)