diff options
author | Yang Yingliang <[email protected]> | 2022-11-19 15:02:02 +0800 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2022-11-22 13:32:26 +0100 |
commit | 3637a29ccbb6461b7268c5c5db525935d510afc6 (patch) | |
tree | 8d064967314dc3efda66bb8fcfd17f8c300cfc45 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 53270fb0fd77fe786d8c07a0793981d797836b93 (diff) |
bnx2x: fix pci device refcount leak in bnx2x_vf_is_pcie_pending()
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(). Call pci_dev_put() before returning from
bnx2x_vf_is_pcie_pending() to avoid refcount leak.
Fixes: b56e9670ffa4 ("bnx2x: Prepare device and initialize VF database")
Suggested-by: Jakub Kicinski <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions