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>
This commit is contained in:
Родитель
e0c7ea83f0
Коммит
f66d59180b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче