All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jaeyeong Lee" <lee@jaeyeong.cc>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/nouveau: fix PCI device reference leaks in dispnv04
Date: Sun, 29 Nov 2026 16:59:26 +0000	[thread overview]
Message-ID: <sashiko-outbox-239819@kernel.org> (raw)
In-Reply-To: <20261129060000.274231-1-lee@jaeyeong.cc>

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 <lee@jaeyeong.cc>

> 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 <lee@jaeyeong.cc>

[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().

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261129060000.274231-1-lee@jaeyeong.cc?part=1

      reply	other threads:[~2026-11-29 16:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  6:00 [PATCH] drm/nouveau: fix PCI device reference leaks in dispnv04 Jaeyeong Lee
2026-11-29  6:00 ` Jaeyeong Lee
2026-11-29 16:59 ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-239819@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=lee@jaeyeong.cc \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.