From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CgBR5rV4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEB941F0092C; Fri, 4 Dec 2026 10:10:05 +0000 (UTC) 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== 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) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] fsl/fman: Fix device reference leak in fman_bind() and fman_port_bind() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179637900465.987530.13138491721715132238.git-patchwork-notify@kernel.org> Date: Fri, 04 Dec 2026 10:10:04 +0000 References: In-Reply-To: To: Yige Jiang 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 Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : 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