mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
mt76: set fops_tx_stats.owner to THIS_MODULE
[ Upstream commitf9df085ce1] If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes:e57b790146("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
722faae382
commit
8b5b803ba5
@@ -233,6 +233,7 @@ static const struct file_operations fops_tx_stats = {
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int mt7915_read_temperature(struct seq_file *s, void *data)
|
||||
|
||||
Reference in New Issue
Block a user