From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F421BC433F5 for ; Mon, 18 Oct 2021 11:36:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C626760EE5 for ; Mon, 18 Oct 2021 11:36:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231301AbhJRLiU (ORCPT ); Mon, 18 Oct 2021 07:38:20 -0400 Received: from 8bytes.org ([81.169.241.247]:59774 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbhJRLiT (ORCPT ); Mon, 18 Oct 2021 07:38:19 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 4441E450; Mon, 18 Oct 2021 13:36:06 +0200 (CEST) Date: Mon, 18 Oct 2021 13:36:02 +0200 From: Joerg Roedel To: Wan Jiabing Cc: Sven Peter , Alyssa Rosenzweig , Will Deacon , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kael_w@yeah.net Subject: Re: [PATCH] iommu/dart: use kmemdup instead of kzalloc and memcpy Message-ID: References: <20211013063441.29888-1-wanjiabing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211013063441.29888-1-wanjiabing@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > drivers/iommu/apple-dart.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Applied, thanks.