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 <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent e0c7ea8 commit f66d591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)