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 D0ADFC10F1B for ; Thu, 22 Dec 2022 01:40:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234934AbiLVBkt (ORCPT ); Wed, 21 Dec 2022 20:40:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbiLVBks (ORCPT ); Wed, 21 Dec 2022 20:40:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D6FE1175; Wed, 21 Dec 2022 17:40:47 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id F3497B81BE6; Thu, 22 Dec 2022 01:40:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C92AC433D2; Thu, 22 Dec 2022 01:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671673244; bh=5hnA9BOPvRCsr9HRqNX8XNegYPB26+FLi9Rn2nGpnu8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IT6jl8cqpjRGnzQEgdfuC1lW2fi3DyceeTn/hkCvrPqc+ukKQREJM4a53K++ZiOp4 PFaOlXJ9RIuyOnAxfUIUx5R0J4O0nWy8T8v1HajJLwMx5+4s7EfTgECyb7rNHE2ZBY c0WpvbBBNMZJfTUjc6yLo5pRogzaeyiAXlqJbY1404kJAP1ch5rXxFqiSPjInfW6UQ XvPxLkIIrQz+a00VqaYW0tnS4ycvFRmlnVUAMspYu0x/VUx186w6cyjmy+Fu1hOxQ6 q/RkGWObwvza4i7ghZxfdHJN1YewXvGWaV8efRbKHFeLAQhBNDtMRvG5uTeyK0NXZV z6wWox25Z2rjw== Date: Wed, 21 Dec 2022 17:40:43 -0800 From: Jakub Kicinski To: Christophe JAILLET Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Taku Izumi , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net] fjes: Fix an error handling path in fjes_probe() Message-ID: <20221221174043.1191996a@kernel.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 20 Dec 2022 21:57:06 +0100 Christophe JAILLET wrote: > A netif_napi_add() call is hidden in fjes_sw_init(). It should be undone > by a corresponding netif_napi_del() call in the error handling path of the > probe, as already done inthe remove function. Ah, now I see why Michal asked about netif_napi_del() in the other driver :S free_netdev() cleans up NAPIs.