diff options
author | Xiongfeng Wang <[email protected]> | 2022-11-22 19:40:35 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-01-20 13:05:39 +0100 |
commit | ce4273d89c52167d6fe20572136c58117eae0657 (patch) | |
tree | 4eae7d673adda1f2a1e8c9aa568968bc9d7bf616 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | cd0ac51c5760d4eed4981be5de9cad0255976512 (diff) |
applicom: Fix PCI device refcount leak in applicom_init()
As comment of pci_get_class() says, it returns a pci_device with its
refcount increased and decreased the refcount for the input parameter
@from if it is not NULL.
If we break the loop in applicom_init() with 'dev' not NULL, we need to
call pci_dev_put() to decrease the refcount. Add the missing
pci_dev_put() to avoid refcount leak.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Xiongfeng Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions