]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerFelix Fietkau <nbd@nbd.name>
Fri, 4 Dec 2020 12:46:16 +0000 (13:46 +0100)
commitf9df085ce1be5c599e4df590ff7ba853786c6d95
tree24a6308c51482b6bf471c0a34b2c7efaa5cc86f8
parente4c5ead632ffd87fc387f306b9e622fe52e97e5a
mt76: set fops_tx_stats.owner to THIS_MODULE

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>
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c