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 197162EF2B7; Fri, 25 Jul 2025 17:14:14 +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=1753463655; cv=none; b=UtBCtfpcSJvWWzkVBQjagvyiUpl0WqyTVGQonHD/fdYvx3K2/UmXLBB+nu9EiKRbIE9UQqVlwCnFgNsFf6amHGlwfxF/7Gc8kDPl3do9g+UFrlyzCvb3P4uAD70a3KLpOfGtt8Dvix3q/1GktmF+KA9bx1vOCTKfELowdh2/MLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753463655; c=relaxed/simple; bh=re11S+8tEIqumSpDL6H1rj102o30u8YGPUHXIsZC5kQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jZF5D0czoeXLmLRiqSp2f7fISVifdimY6+NdFEgAnfc6cB0CKDJuaGeherUFhOtxHtOWRLbesKqvPllemse5TucPnehfPG150rTqeJxrFN7/RN8vAA/Byy+DDo10jjZx9Xg8NA1lav0Ha/tf728tVVOUHweEmnxGI49SoawqbdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kJgEUy3I; 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="kJgEUy3I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B51FDC4AF09; Fri, 25 Jul 2025 17:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753463654; bh=re11S+8tEIqumSpDL6H1rj102o30u8YGPUHXIsZC5kQ=; h=From:To:Cc:Subject:Date:From; b=kJgEUy3Imdjsuw91viPX8c8gaBRYRt4bL7YSdv6zJ3WZgdij2GElV+409kOiwRE1W 2eIiuHUAAl+c69S3vgJ48bsijUWVZ1b2Dn7wFXh6Z8fm58GD/zZKP71AxSrAo6LiSy Sng9eCdlOWbvx9e2Z9jmsFZZ33iMQecx9auRvcfw4l9aR2zwyQDFbOlCLQYioLL9Gx HaLM520HJvbfp6zoLO0tdbtZbEu/VK81WQ97besWCDJFL5WMMX6/SAjNaHyldtpPVo KvtqvG1k+zSynY7sZtmupbM5d0uhX9aMHvH5xcgDB0nTbFC+ec02VGRJvfgsq+oCC4 pe28SmQiQ3PuA== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1ufLzm-000000000Gh-34a4; Fri, 25 Jul 2025 19:14:11 +0200 From: Johan Hovold To: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Madalin Bucur , Claudiu Manoil , Vladimir Oltean , Wei Fang , Clark Wang , Felix Fietkau , Sean Wang , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , MD Danish Anwar , Roger Quadros , Richard Cochran , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/5] net: ethernet: fix device leaks Date: Fri, 25 Jul 2025 19:12:08 +0200 Message-ID: <20250725171213.880-1-johan@kernel.org> X-Mailer: git-send-email 2.49.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series fixes devices leaks stemming from failure to drop the reference taken by of_find_device_by_node(). Johan Johan Hovold (5): net: dpaa: fix device leak when querying time stamp info net: enetc: fix device and OF node leak at probe net: gianfar: fix device leak when querying time stamp info net: mtk_eth_soc: fix device leak at probe net: ti: icss-iep: fix device and OF node leaks at probe .../ethernet/freescale/dpaa/dpaa_ethtool.c | 4 +++- .../net/ethernet/freescale/enetc/enetc_pf.c | 14 +++++++++-- .../net/ethernet/freescale/gianfar_ethtool.c | 4 +++- drivers/net/ethernet/mediatek/mtk_wed.c | 1 - drivers/net/ethernet/ti/icssg/icss_iep.c | 23 +++++++++++++++---- 5 files changed, 36 insertions(+), 10 deletions(-) -- 2.49.1