]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: xilinx: use strscpy to replace strlcpy
authorXueBing Chen <chenxuebing@jari.cn>
Mon, 11 Jul 2022 14:05:33 +0000 (22:05 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Jul 2022 13:34:35 +0000 (19:04 +0530)
commitbe3b68b3139a80a836fe3cc79582b623917d6a69
tree80a6ed7c620d9375e9e698a0569d8a4b71a36864
parent2f78f05cd86d68d1c60abbad41a612a69f8b06c9
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>
drivers/dma/xilinx/xilinx_dpdma.c