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 <[email protected]>

> 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: [email protected]
> Signed-off-by: Jaeyeong Lee <[email protected]>

[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/[email protected]?part=1

Reply via email to