diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-11-29 04:57:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 13:58:18 +0300 |
commit | c49996c6aa03590e4ef5add8772cb6068d99fd59 (patch) | |
tree | a91b7bbfa691f4d90f01efe8a37c47e1944ec1c9 /net/ipv6 | |
parent | fb8534b7960fe4df3c1014fc2da4ac35a6605b54 (diff) | |
download | linux-c49996c6aa03590e4ef5add8772cb6068d99fd59.tar.xz |
ixgbe: fix pci device refcount leak
commit b93fb4405fcb5112c5739c5349afb52ec7f15c07 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions