Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2436529rwb; Thu, 29 Sep 2022 10:08:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7qN+BC0qo4naUWgf0gj6xYoRTkfgDdismcOL/ro1fnBhef/iZ5H5EDigBjI9MdGuITdzfy X-Received: by 2002:a05:6402:28b4:b0:457:16c8:7147 with SMTP id eg52-20020a05640228b400b0045716c87147mr4232440edb.293.1664471323903; Thu, 29 Sep 2022 10:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664471323; cv=none; d=google.com; s=arc-20160816; b=lbVxtzN9DleHdFwaatv/ihc16K90c7KsmM+1cQ3X+634m0RmTbJ1FYe14UrWqJpqRa kOqVAU3ZquxmtVLcuJ0gZwsepkoH2phTbzF+TIdGvwKJi/0T3gL68LGpZXwDwY3PiE6K kNOopsTXswiYPfpoPzKCH8vViciq9UAT7BB1msz/rt5uu+fJcy/qWH/DKgiI7ezpiYnO fjU72AqmFtSoHD7SCVheXBeScYqtvOaF3O7FqtDFVPNwtnTPdr9Ew2JEvlZjtuHaxqfI jEI2hqg8YQli1vRGY4rRvuq/b7Z+yhcgtyfHlpsLnuMP0nyozNOs1yEzJbbcw3WUWKV5 K02g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2NScDvo8JFa6l7EUTYKMTf5xeER3UPm6YRwtOIZrURM=; b=WwTGpzG46rABWX35Ejdt84LYqD4z2bMG9bODt6NQM3RrXklAYsfQwhvxmIguwHT3VA lTf8w6xtSnHjknQeLAk13oUQ4mih1wFkiIc36Y4VrkQdk4ZvuG7mZubUam2IchKTPwrk 5+MuNr4aYMMH0TsBVmz09dokXVMxzDAGW5VUPFuDP9f2c+9/RPyFkx73TV6gNA5+bNWm +6Jl6hO/V3h7MsNcTieFxIayaL+gK3v4JJX5oztbQSs7cAmJagb1FLqtoHCeCawXpNiA AySWx3NMe0bMHm0XfETZsRmB3gnd4XLVkRs2yllShYjIwbh5SxGUBT++r0baUaGjkvsB dGUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5PC+fwb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020a170906180700b00781bfe698d6si6911318eje.602.2022.09.29.10.08.16; Thu, 29 Sep 2022 10:08:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5PC+fwb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236103AbiI2QP6 (ORCPT + 99 others); Thu, 29 Sep 2022 12:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236095AbiI2QPb (ORCPT ); Thu, 29 Sep 2022 12:15:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D6955A3C0; Thu, 29 Sep 2022 09:15:29 -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 28C216199B; Thu, 29 Sep 2022 16:15:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47336C433D6; Thu, 29 Sep 2022 16:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664468128; bh=Lr5Bwe8VTXw9ymJz//fWnPNzMpaU/u/0B7OKy4k+U+k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=R5PC+fwbnTG2Eq1gny8hRMLmjfptqsftAqgAhV3XZHRh5qYHvSaaU8C1F3vs6mTaj 9t0c9kcDKWpt5u8ASczsMlAHZIiL38rDJ+SJfvgmCf7cA3cHB/lIM5/I8Lfzb56UMp Q0UzaWO79XfqubO8wPM2Wu8B+OTlqxRawXvsZrpMKMlcsV8wArE7zO68lzP4jw1u13 bOPf3GAoOZhjdlt3Sw/yioGiLgvkk3gYgwNpVVXvwYvIeOeNkOWlznbOm9DcHZ3Xg2 YzOrUVjb60IZXLbuKqli/VM87aL2y62kaLY88cmAPb2Rr+7phCwjXUHlBoMeVOTvCt f1rwiXnEfoq1A== Date: Thu, 29 Sep 2022 09:15:27 -0700 From: Jakub Kicinski To: Jiasheng Jiang Cc: tchornyi@marvell.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: prestera: acl: Add check for kmemdup Message-ID: <20220929091527.370b39a4@kernel.org> In-Reply-To: <20220928092024.6996-1-jiasheng@iscas.ac.cn> References: <20220928092024.6996-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Sep 2022 17:20:24 +0800 Jiasheng Jiang wrote: > As the kemdup could return NULL, it should be better to check the return > value and return error if fails. > Moreover, the return value of prestera_acl_ruleset_keymask_set() should > be checked by cascade. > > Fixes: 604ba230902d ("net: prestera: flower template support") > Signed-off-by: Jiasheng Jiang You must CC the authors of patch you're fixing. get_maintainer will do that for you I don't understand why people can't simply run that script :/ You CC linux-kernel for no apparent reason yet you don't CC the guy who wrote the original patch. If you could please explain what is going on maybe we can improve the tooling or something.