Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1487015rdb; Sat, 18 Nov 2023 20:22:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHdhchD8dkT0sqR7p0Ip9l9XQj6QBlRkXlrU8G287n1s8XeCzsATN8+Y8pDfdZ+TmiCuIUK X-Received: by 2002:a05:6808:f8b:b0:3a6:fb16:c782 with SMTP id o11-20020a0568080f8b00b003a6fb16c782mr5825283oiw.30.1700367743155; Sat, 18 Nov 2023 20:22:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700367743; cv=none; d=google.com; s=arc-20160816; b=ffUhn6BQUFQnMtronAW95O/N3dnhPvMnkI4Z5S89ZBiCOAmLtO/19bUdkiXkivL8Qg znM2+ON9tR7zSqHznLHLJnoiEbJVTxHlyPUidVbQQVKTTPx8rEx9tKeySXQgPs1/s1fc a6ePw2MCAadsJTZO6nW787kJONffcpxKCQxr2t4K5QA9f4e4VNho/IfRnUU7iZ64LC3S XGBiwtLracg8TfQl4nq4P0RW+OCRQn3GnmKhx0icw3cThdOZX32B8vnKNbShqF82HOD+ hSajH+N5FDftVTgiFs7HJeX35X2u4PMr++H05RgNZMkSae3sfNwimPU24q16s7/FLY+D Nzew== 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=pKTyjGZPXtce8B2GvWvk+2OURLeeEt2n2zKdATvD8lA=; fh=halK2wnwg59aNPvjdTuIFRaGW/vvBhRnkBheA6ewJVI=; b=rn0caMdQO0GZ769Gyhs1OUXgIY2y29DFETZ1EUNEuHZj8L13XnV2zxNVduG2C5farN 1vZXWpUrC2Fu9fxP2YKt6U6p6frSJbj/uWpUoSuMID2Vt0uRMpdbIJ/1FtXcrX+H2Oeq S4mIPTeIUGkAJ8AYbBnMd2W7ZQk2OfjxnISqr76dI/nC3ZM31ZP5CgZB3qfKRz08IhKR tj2m8ldLeAt1cIBhzqMoKbbRd4PnYHHLK+TIkB8CkIErK/fiL2Tx6x3+BHv+MNMXJuG9 t/hR3omAv887jxTen+n7dPHK+D9DifX9kpqc6w/WxzCFIjKzi9W0sKQ8X+QdAwtc5hlA 7Z4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qp4YyRG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id g10-20020a170902868a00b001cc50114667si5001410plo.551.2023.11.18.20.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 20:22:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qp4YyRG+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E363C80569B6; Sat, 18 Nov 2023 20:22:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbjKSEWN (ORCPT + 99 others); Sat, 18 Nov 2023 23:22:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbjKSEWM (ORCPT ); Sat, 18 Nov 2023 23:22:12 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 128DFA8 for ; Sat, 18 Nov 2023 20:22:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21EE1C433C7; Sun, 19 Nov 2023 04:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700367728; bh=46ZpEAegBzDsGRG/6xeHo6oLyXNnMQAtkVXlHiBHSKs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qp4YyRG++RoMvkw8/Co9B0TbaVvIzlXjc3rhJ7zj2V6SeqSThtmiNz10FM4OQPHmF 1ffEwiVWo2ZabFMcNiLDXu1xWS/QiQ4W5oj30/BV3umwtYvoutGpsgoKvUTsuHZmRM PDryk4UxdFSTFT2DlE3w6N+8g/N09ceNKi8DzUllEPrpaNLKKep9yCtDJbRpQ9X8Q6 5+scIoXIgk1snDpd8MzQl/6Usen3OjXvyzs435HLO4wilfecd+j1dNYlhrKN81U2gE A14IIhMGaek8Zj5bNgqX2ny3iN0DZwUJm6LRzBe2ooqvdAGZzvcEyVkbKRlw9+X00J 516riIEo9LD5g== Date: Sat, 18 Nov 2023 20:22:07 -0800 From: Jakub Kicinski To: Louis Peens Cc: Denis Arefev , "David S. Miller" , Eric Dumazet , Paolo Abeni , oss-drivers@corigine.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH] nfp: flower: Added pointer check and continue. Message-ID: <20231118202207.16a60834@kernel.org> In-Reply-To: References: <20231117125701.58927-1-arefev@swemel.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 18 Nov 2023 20:22:21 -0800 (PST) On Fri, 17 Nov 2023 16:27:17 +0200 Louis Peens wrote: > > acti_netdevs = kmalloc_array(entry->slave_cnt, > > sizeof(*acti_netdevs), GFP_KERNEL); > > Unnecessary new line, please remove it. There should be no empty lines between call and error check. > > + if (!acti_netdevs) { > > + schedule_delayed_work(&lag->work, NFP_FL_LAG_DELAY); > > + continue; > > + } > > + > Thanks for reporting this Denis, it definitely seems to be an oversight. > Would you mind adding a 'nfp_flower_cmsg_warn' here as well, so that > this case does not go undetected? Maybe something like "cannot > allocate memory for group processing" can work. There's a checkpatch check against printing warnings on allocation failures. Kernel will complain loudly on OOM, anyway, there's no need for a local print. -- pw-bot: cr