Files
linux/drivers
Yang Yingliang 112df4cd2b ixgbe: fix pci device refcount leak
commit b93fb4405f 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: 8fa10ef012 ("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>
2023-01-18 11:44:55 +01:00
..
2021-03-04 11:38:21 +01:00
2022-05-09 09:04:56 +02:00
2021-11-18 14:03:51 +01:00
2023-01-18 11:44:55 +01:00
2022-04-13 21:00:55 +02:00
2023-01-14 10:16:24 +01:00
2022-08-25 11:38:14 +02:00