Re: [PATH] drm/loongson: fix pci_dev refcount leak in lsdc_get_dedicated_vram

From: Markus Elfring

Date: Tue May 19 2026 - 04:04:47 EST


> Need call 'pci_dev_put' after 'pci_get_domain_bus_and_slot'.

See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.1-rc4#n94

* How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?

* Would it be helpful to append parentheses to function names?


https://elixir.bootlin.com/linux/v7.1-rc3/source/drivers/gpu/drm/loongson/lsdc_drv.c#L154-L190

Regards,
Markus