Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDB51606A31C for ; Sun, 29 Nov 2026 16:59:39 +0000 (UTC) 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=ASJA80yW Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E02A810E066; Sun, 29 Nov 2026 16:59:33 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id F2EC710E066 for ; Sun, 29 Nov 2026 16:59:26 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id B6CE8416C0; Sun, 29 Nov 2026 16:59:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85CAF1F00896; Sun, 29 Nov 2026 16:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795971566; bh=+y8L4Bm0LsgN4Z7cImaghDbaoc59sgRdeEdCMaO8VnQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=ASJA80yWkIQ3UstI8vshv8k9cfVio6UE4Ob6vh/ugEHGVaXuqo4CPikH0fin1voez uFRRKHUzPHnnZTMoo5FVMo7HHnwcDs1SO5T9a4ZplKqUmE3ukCEKVL0VZvMw1UlOOq apIyyyI6XBiGxZVBuOV6qHRbt9Cz27r2ZEjk2bW4+AwxcXvME8TmjVnKzW62Kxwnhi sM4RKIHrfvp1UEvEFlYRKg0mTlL3ONiytcWWunfgVj9u+K5gjXAwm1yuIQPA/QjVs4 zgJgz3ZjH4Eo01xp71otxzijChQBpvs5NY9dt/7CcEuQTVVuoYQmLUm+Yxv7Z6V04s Qonyz6S8ucX6A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] drm/nouveau: fix PCI device reference leaks in dispnv04 To: "Jaeyeong Lee" Cc: dri-devel@lists.freedesktop.org In-Reply-To: <20261129060000.274231-1-lee@jaeyeong.cc> References: <20261129060000.274231-1-lee@jaeyeong.cc> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 16:59:26 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/nouveau: Fixes trailer cites wrong commit for dispnv04 pci_dev leak -- commit d77cb05c2913f228ea0d6d6679426ec339d32cca Author: Jaeyeong Lee > drm/nouveau: fix PCI device reference leaks in dispnv04 > > pci_get_domain_bus_and_slot() returns a referenced PCI device. The > nForce arbitration and clock paths pass that device directly to > pci_read_config_dword(), losing the pointer and leaking one reference > on every invocation. > > Keep the bridge pointer and drop the temporary reference after each > configuration-space read. > > Fixes: 2fa6d6cdaf283c05 ("drm/nouveau: deprecate pci_get_bus_and_slot()") > Cc: stable@vger.kernel.org > Signed-off-by: Jaeyeong Lee [Severity: Low] Should the Fixes: tag point to 6ee738610f41 ("drm/nouveau: Add DRM driver for NVIDIA GPUs") instead? Commit 2fa6d6cdaf28 ("drm/nouveau: deprecate pci_get_bus_and_slot()") only replaced pci_get_bus_and_slot() with pci_get_domain_bus_and_slot(), and pci_get_bus_and_slot() already returned a referenced struct pci_dev that required pci_dev_put(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129060000.2742= 31-1-lee@jaeyeong.cc?part=3D1