linux-stable/drivers/net
Xiongfeng Wang 8abc657966 mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2()
[ Upstream commit 5938196cc1 ]

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: 9093cfff72 ("mt76: mt7915: add support for using a secondary PCIe link for gen1")
Fixes: 2e30db0dde ("mt76: mt7915: add device id for mt7916")
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:26:07 +01:00
..
appletalk
arcnet
bonding bonding: uninitialized variable in bond_miimon_inspect() 2022-12-31 13:26:06 +01:00
caif
can can: kvaser_usb: Compare requested bittiming parameters with actual parameters in do_set_{,data}_bittiming 2022-12-31 13:25:52 +01:00
dsa net: dsa: mv88e6xxx: accept phy-mode = "internal" for internal PHY ports 2022-12-14 11:41:05 +01:00
ethernet net: ethernet: mtk_eth_soc: fix RSTCTRL_PPE{0,1} definitions 2022-12-31 13:26:00 +01:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim
pcs
phy net: phy: mxl-gpy: add MDINT workaround 2022-12-14 11:41:05 +01:00
plip net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq() 2022-12-14 11:41:05 +01:00
ppp
slip
team
usb
vmxnet3
vxlan
wan
wireguard
wireless mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2() 2022-12-31 13:26:07 +01:00
wwan
xen-netback xen/netback: fix build warning 2022-12-14 11:41:04 +01:00
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c net: loopback: use NET_NAME_PREDICTABLE for name_assign_type 2022-12-21 17:41:15 +01:00
macsec.c macsec: add missing attribute validation for offload 2022-12-14 11:41:05 +01:00
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c net: thunderbolt: fix memory leak in tbnet_open() 2022-12-14 11:41:05 +01:00
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c