diff options
author | 2022-11-29 09:57:48 +0800 | |
---|---|---|
committer | 2023-01-10 11:38:58 -0800 | |
commit | b93fb4405fcb5112c5739c5349afb52ec7f15c07 (patch) | |
tree | e253ca2ae951980d89132642962c395770d965bd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | octeontx2-pf: Fix resource leakage in VF driver unbind (diff) | |
download | wireguard-linux-b93fb4405fcb5112c5739c5349afb52ec7f15c07.tar.xz wireguard-linux-b93fb4405fcb5112c5739c5349afb52ec7f15c07.zip |
ixgbe: fix pci device refcount leak
As the comment of pci_get_domain_bus_and_slot() says, it
returns a PCI device with refcount incremented, when finish
using it, the caller must decrement the reference count by
calling pci_dev_put().
In ixgbe_get_first_secondary_devfn() and ixgbe_x550em_a_has_mii(),
pci_dev_put() is called to avoid leak.
Fixes: 8fa10ef01260 ("ixgbe: register a mdiobus")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions