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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10862C433EF for ; Wed, 23 Mar 2022 15:48:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245252AbiCWPtn (ORCPT ); Wed, 23 Mar 2022 11:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245241AbiCWPtk (ORCPT ); Wed, 23 Mar 2022 11:49:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE63BCA4; Wed, 23 Mar 2022 08:48:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 58B8D617F1; Wed, 23 Mar 2022 15:48:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6364FC340EE; Wed, 23 Mar 2022 15:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648050487; bh=iu0a4mlm3tbKjoNfbU+jRGCOyzpTsae6ebaZk9gmlDE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jSMDr7MJ1iTCQsTagta1rYmK+n+407ozJ9MkOx8M0n7xPhBiSqCZLNonhHOk63pHj jtyxZQq+ibp64Qcz6XJF2Qz+ry1TEvJkUhCwLt2TQk1oojYd4VGjNPvKOnEaAd6GHd T452ay+Kt9aCZTxD1+yg/haAut9eWrEFfyoMALVL3mMTk4PQ2uPERy5QOhV0t+yyQL 0Bw1jY+vGuakSSIbLWrC8sSafCrB34w+DxD5RCA0t8M5He+/3Kwqb8mCOXV9dbu5Rm GPU1FmMlxjyaknMi8PNTKkbxfmdUR4vTTW8aNoyq2gLhtaIpQJKPD3P7uTyhS3gowL LXN2zmL3tghdg== Date: Wed, 23 Mar 2022 08:48:06 -0700 From: Jakub Kicinski To: "GONG, Ruiqi" Cc: "David S . Miller" , Paolo Abeni , Benjamin Poirier , , , Wang Weiyang , "Xiu Jianfeng" Subject: Re: [PATCH] net: mpls: fix memdup.cocci warning Message-ID: <20220323084806.41291408@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220323080706.212531-1-gongruiqi1@huawei.com> References: <20220323080706.212531-1-gongruiqi1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Mar 2022 16:07:06 +0800 GONG, Ruiqi wrote: > Simply use kmemdup instead of explicitly allocating and copying memory. > > Generated by: scripts/coccinelle/api/memdup.cocci > > Fixes: 7d4741eacdef ("net: mpls: Fix notifications when deleting a device") Fixes tag are for bugs. > Signed-off-by: GONG, Ruiqi net-next is closed during the merge window please repost in 2 weeks.