aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-17 21:51:48 +0800
committerJakub Kicinski <[email protected]>2022-11-18 19:40:14 -0800
commit5619537284f1017e9f6c7500b02b859b3830a06d (patch)
tree7a4e36128af8d40f61ded688d7c5ada0d1d701dc /tools/perf/scripts/python/syscall-counts.py
parentd66608803aa2ffb9e475623343f69996305771ae (diff)
net: pch_gbe: fix pci device refcount leak while module exiting
As comment of pci_get_domain_bus_and_slot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). In pch_gbe_probe(), pci_get_domain_bus_and_slot() is called, so in error path in probe() and remove() function, pci_dev_put() should be called to avoid refcount leak. Compile tested only. Fixes: 1a0bdadb4e36 ("net/pch_gbe: supports eg20t ptp clock") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions