Re: [PATCH] iommu/dart: use kmemdup instead of kzalloc and memcpy

From: Joerg Roedel
Date: Mon Oct 18 2021 - 07:36:10 EST


On Wed, Oct 13, 2021 at 02:34:41AM -0400, Wan Jiabing wrote:
> Fix following coccicheck warning:
> drivers/iommu/apple-dart.c:704:20-27: WARNING opportunity for kmemdup
>
> Signed-off-by: Wan Jiabing <wanjiabing@xxxxxxxx>
> ---
> drivers/iommu/apple-dart.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)

Applied, thanks.