From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A153256C6C for ; Wed, 25 Feb 2026 01:59:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771984770; cv=none; b=bJxP+/XkaDKwPizpaCLBJMWFqkKWxInAfW1CmC9O0shofi92RnIY05NRCxjw4WKC+ajdMzfxsBrsr17hOSdIcKkT1obNyixFri8/74u3VzWDT+5FQcX80n9UPyjP5E5AruUBzMe+kTbcAB8gxZloAh+x8ObO2NKBxB+70NrXYjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771984770; c=relaxed/simple; bh=mpBZ/jHH1XAOVWngsdWnzLBHwuFwXRBwp3U6v071b+w=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZhLSwijkcAgpe+dYSH1rCpaOa/KpL69GzKqo5rhG0Wh+OpCdV6LQz2lo5Voi5eNt4EFmXhy5XEw3mpnj8HoQDVP45hHfXz/mSBSBY+YgK5kH+GtnB+lpx1EUx8Zzo7QXFmbIFTM8ZjOSBWfabx6tANnMwpawRkQbgiTPMEKBx4I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tGUX00rF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tGUX00rF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BF61C116D0; Wed, 25 Feb 2026 01:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771984770; bh=mpBZ/jHH1XAOVWngsdWnzLBHwuFwXRBwp3U6v071b+w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tGUX00rFcwj+CQ1x0ipZeDTZqDHuTtHPKHrROrDiAmmQQuCE5KSevD1BSr4/OgkB4 CWdbxfzRU8+jwNdpJ8Z5++Z5p+iwsfOvnioogFbeiz2g3ynJyZk5zyFIAIKQp0mhuD 8Hg9AgSShE0SsJ/gNLmytWavN1okaU94Z3Qww/YopfJRTW89ClrVJH/mcz79EIKgSZ RJBOnaBf4s0anuX+pCrYlfC0oy/TuX7f0gWHeA/q3/9DcBWJhtXYoWdWiJmFeHRKg/ srGAouL4CcQijZFlpmOFE3mDDdmqnZ2qwDFFHE14tvRqux4+P0GwL5pzpIPn7cB5Ig 44dRwytf8PgBw== Date: Tue, 24 Feb 2026 17:59:28 -0800 From: Jakub Kicinski To: Rosen Penev Cc: "Christophe Leroy (CS GROUP)" , netdev@vger.kernel.org, Pantelis Antoniou , Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Russell King Subject: Re: [PATCH net] net: fs_enet: add missing kfree in _remove Message-ID: <20260224175928.3d16350b@kernel.org> In-Reply-To: References: <20260224015517.354145-1-rosenp@gmail.com> <027d191f-f04e-4ead-a9b8-a6626e0828c1@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 24 Feb 2026 14:24:53 -0800 Rosen Penev wrote: > > Le 24/02/2026 =C3=A0 02:55, Rosen Penev a =C3=A9crit : =20 > > > The kfree is present in _probe on failure but not in remove. =20 > > > > Which kfree ? Which structure ? =20 > probe has >=20 > out_free_bd: > fep->ops->free_bd(ndev); > out_cleanup_data: > fep->ops->cleanup_data(ndev); > out_phylink: > phylink_destroy(fep->phylink); > out_free_dev: > free_netdev(ndev); > out_free_fpi: > kfree(fpi); This says fpi, not fep. Which is what Christophe was telling you. Please add a Fixes tag when you send v2