diff options
author | Xiongfeng Wang <wangxiongfeng2@huawei.com> | 2022-11-25 10:58:31 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-12-01 17:29:15 +0100 |
commit | 5938196cc188ba4323bc6357f5ac55127d715888 (patch) | |
tree | 2152127489cb5a74c98337a536ed69c61487b2cd /tools/perf/scripts/python/export-to-sqlite.py | |
parent | f37f76d43865c58cb96aa13c87164abb41f22d0b (diff) |
mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2()
As comment of pci_get_device() says, it returns a pci_device with its
refcount increased. We need to call pci_dev_put() to decrease the
refcount. Save the return value of pci_get_device() and call
pci_dev_put() to decrease the refcount.
Fixes: 9093cfff72e3 ("mt76: mt7915: add support for using a secondary PCIe link for gen1")
Fixes: 2e30db0dde61 ("mt76: mt7915: add device id for mt7916")
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions