mt76: set fops_tx_stats.owner to THIS_MODULE
authorTaehee Yoo <ap420073@gmail.com>
Thu, 8 Oct 2020 15:51:56 +0000 (15:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:35 +0000 (11:53 +0100)
commit8b5b803ba5b7242a87f25ddc60d45cb53ee35efa
tree68f2afef4fb9daa0164ef468f220f263626a09a7
parent722faae3826ad45ea3207916f631e187ec93aab0
mt76: set fops_tx_stats.owner to THIS_MODULE

[ Upstream commit f9df085ce1be5c599e4df590ff7ba853786c6d95 ]

If THIS_MODULE is not set, the module would be removed while debugfs is
being used.
It eventually makes kernel panic.

Fixes: e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c