Article View: linux.kernel.netdev
Article #26856Re: [PATCH net] fsl/fman: Fix device reference leak in fman_bind() and fman_port_bind()
From: patchwork-bot+netdevbpf
Date: Fri, 04 Dec 2026 10:10
Date: Fri, 04 Dec 2026 10:10
24 lines
8798 bytes
8798 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Thu, 26 Nov 2026 20:25:02 +0800 you wrote:
> fman_bind() and fman_port_bind() call get_device() and return the
> device's driver data. They keep the reference even when the driver
> data is NULL, which happens when mac_probe() runs before the FMan or
> FMan port driver has set it. mac_probe() then fails and drops only the
> reference from its own of_find_device_by_node() call, so the reference
> taken by the bind helper is leaked on each such probe.
>
> [...]
Here is the summary with links:
- [net] fsl/fman: Fix device reference leak in fman_bind() and fman_port_bind()
https://git.kernel.org/netdev/net-next/c/8a3d0368f58e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179637900465.987530.13138491721715132238.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377234-linux-kernel-netdev=dewy.ruReferences:
<rc-b1-20261110-vc-176-5127b53b8eab@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377234-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] fsl/fman: Fix device reference leak in fman_bind() and fman_port_bind() Date: Fri, 04 Dec 2026 10:10:04 +0000 Organization: Usenet Network Message-ID: <179637900465.987530.13138491721715132238.git-patchwork-notify@kernel.org> References: <rc-b1-20261110-vc-176-5127b53b8eab@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2734428"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:6jzg8+rURwC7x2U/irrHlwzDQbU= sha256:2J/C8BMhQJhMGzrT99LdmXBUwFUoc8k5iEsu/S5lRbc= sha1:jEfSyr5H9LOcrnDZ/FX2Sn8dOXE= sha256:ZEj+2ZLhjjP8uAbTe5sAFBafHTrP9ye+1hHr7X5U7hE= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 1105F117B90; Fri, 4 Dec 2026 13:10:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dVrVHEfExN6j; Fri, 4 Dec 2026 13:10:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377234-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id D7063117B8E; Fri, 4 Dec 2026 13:10:12 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 87BEF293C8; Fri, 4 Dec 2026 10:10:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796379007; b=AG0O928TOGF6FZDPL6IzPDZx6xPBgVx3KsbEiXSJwbINxrFlVddjLMhdx9K+9FhLW6Qn kL3/LdKMY50VkFt//2ORbOuL9QLdc2xNWKWhfVPtnvEhUKg91Hq5Mj61OFFXiLTwq8jhn 5yE+p2v+H1G4bXWXyVLAdrIHBF+qC3eqkxUWyUO4H34Aib4Ltz/yCO/uGHcOjJWP3EchT 9Ac68PVjabhTSijUwVM44IUgdfm4YBAuU25i2et3prUbTVCTp5BD9UESD64XcTSw3RUcT rmT07Fw4Gf/4wMrBTR1zOOqXtMXTY04Abv2XS7aZR3i52gqw4M3ZztmuNfYYGnlhLwQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379007; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=Ut4P2qBskdSPhH6p6bQZeQET7ORC8FhpKpY4Ux1MVu4=; b=WoIFlU4Z2IhdS/uNpQvJT2dVAAePsaNHy2VCMA9PYJ44gRs3On6mvPRB2XJzsTXwMsCX 5mHK1AF6qWInx1nryYqm8xNLYc5PygiyJ6R05XMTz/03Fb6ykxOur9WyR1KVSm9sm2cfs c20m1t+hGGJvA84H6VIlXsIWp8IcydDLARSOKYedJnbAfka+DDxSfUlrVaKsALIxkxhbh 7a8u4fZvQywIbYA+wD2VqAvqSCSTYFgo3gHLVw/0TnzHtqQU4EfMc6ZyFWewp0MDo52HG rJ7kZ70N9T7S5gIELw7Jss1KlS1zAAbZPSL5I9mEPPYYrQU7qEimdqg6ff5IRTq4rrA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CgBR5rV4; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12A1F606A33E; Fri, 4 Dec 2026 10:10:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CgBR5rV4 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379006; b=0n3a1+67t+Vo3cdoGFxO+RL2DE7dThsTbVIwHUH9JP7+lqvmE1mEKYcQJGFTWJj5hR4/ H0AMJwccS3C41PiKfPX/V8st1xDb0shGpu+Di2MPBa+KOE1aTA+Hk0gE2SFLI6QfMJsMq /IlrA14ghyi6hWFbxztD2Cgcg7npEyTwPw3KFe9UdDcRJq97bfntOv4AEhNBhttR0j/iA EIOJMM/5yGIrn73KJq4k/KcIgPeBIEhf/gViDKjTUzCnhIbAgQ2mSg6oKpEV5VISDESmP Mlvm1SnomqYiJjFwMhshXAjUPL/uSEbEQAWvbLOmw7kkCxkC9vsby2nV3dxZ20+zB5g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379006; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=Ut4P2qBskdSPhH6p6bQZeQET7ORC8FhpKpY4Ux1MVu4=; b=jHGGytU7oZ97xZYFoSvjxLnbF3y47PMMm1KnQHhHmSMD5puteK9y+lYJJBjZrJuDalQL tsIAaZ6jrx6fOijE5y4o7xWRhiuKCjtNqiMTt1l8toRlM4YaX1liZs9HNgwZ/RDx+uBih LS1K7ba/18Vnaat4/QLvwajZZ6veyTbNBzNuSv8J74vv2ClYJIgwHmBkfrQYM+bMXWMB2 1Byf/3st5a68786vCD/a2LTyqN83EM6PEcSBBF+yDbYlxrrdpy9e654Fkwfm1/dfuBqlo FNzZgdMmzGsjaTX6GtDeHtQyOWJspFYeoQCcP+LMRpcS9qy/g3c3nWt2kgYER5c7baw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CgBR5rV4; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F8E1606A333; Fri, 4 Dec 2026 10:10:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEB941F0092C; Fri, 4 Dec 2026 10:10:05 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796379005; bh=Ut4P2qBskdSPhH6p6bQZeQET7ORC8FhpKpY4Ux1MVu4=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=CgBR5rV4SqKKge4TdQPrP5cS3vCMNlQEtT3TfU5sECuer8UdQAIRYoSImNEvyoc9T ar6H4cvybEQ87Wb8UaTeD2dPoa5EsBwEVEN24CXU79WuRG1KzYKdgvxNY94NE+Mm31 QWSd8N/0gkPIGHNUvCnOwPdXSamd4iHaY5e7xwWAgEKMw0Ep2VFPfdW30MuX3GLUpJ ZyN+GIoNc5rzQH67f5z6dX/OHBbUDvCaSSn07jyIF8fqR4LU8VI9xYXulpQML2U6NE sQwSm0eIjnaY6wWWLnmP9+yFIPzDcpmzuIm7W3v+SmDgzgYMvd6et7CiN66LrvKRrf 0hwM7hfxgPMew== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id D3C713808236; Fri, 4 Dec 2026 10:10:05 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <rc-b1-20261110-vc-176-5127b53b8eab@gmail.com> X-Cc: madalin.bucur@nxp.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, sean.anderson@linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org