Re: [PATCH v2] perf/dwc_pcie: Fix PCI device reference leak in probe
Markus Elfring <[email protected]>
| Newsgroups | gmane.linux.kernel.janitors,gmane.linux.kernel,gmane.linux.kernel.perf.user,gmane.linux.ports.arm.kernel |
|---|---|
| Message-ID | <[email protected]> |
… > Declare the looked-up device with __free(pci_dev_put), so the temporary > reference is released on every return path. Keeping the reference scoped > to the whole probe also covers all later uses of the device during > initialization. … Is there a need to reduce the scope for such a local variable further by using a corresponding compound statement? Regards, Markus