Re: [v2] perf/dwc_pcie: Fix PCI device reference leak in probe

Markus Elfring <[email protected]>
Newsgroups org.kernel.vger.kernel-janitors,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-perf-users
Message-ID <[email protected]>
> I think keeping the function scope is clearer here :)

I got an other impression because a pci_dev_put(pdev) call was applied
before a devm_kasprintf() call.
https://elixir.bootlin.com/linux/v7.2/source/drivers/perf/dwc_pcie_pmu.c#L695-L717

Regards,
Markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.