]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dmatest: use strscpy to replace strlcpy
authorXueBing Chen <chenxuebing@jari.cn>
Wed, 25 May 2022 09:03:03 +0000 (17:03 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 6 Jul 2022 05:34:43 +0000 (11:04 +0530)
commit91c21a26f78b2f6200965c2d8d97ab26bd3416e0
tree3c53315d9739ecc20dd10f8093e80107b7d55c93
parentd43d28a6590c2266fb08de1cca503a60920afd0b
dmaengine: dmatest: 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>
Link: https://lore.kernel.org/r/12e4cf06.a35.180fa748c29.Coremail.chenxuebing@jari.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmatest.c