Commit f66d5918 authored by XueBing Chen's avatar XueBing Chen Committed by Vinod Koul
Browse files

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: default avatarXueBing Chen <chenxuebing@jari.cn>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/39aa840f.e31.181ed9461c2.Coremail.chenxuebing@jari.cn


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent e0c7ea83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}