Skip to content

Commit f9df085

Browse files
TaeheeYoonbd168
authored andcommitted
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: e57b790 ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") Signed-off-by: Taehee Yoo <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
1 parent e4c5ead commit f9df085

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7915

1 file changed

+1
-0
lines changed

drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ static const struct file_operations fops_tx_stats = {
233233
.read = seq_read,
234234
.llseek = seq_lseek,
235235
.release = single_release,
236+
.owner = THIS_MODULE,
236237
};
237238

238239
static int mt7915_read_temperature(struct seq_file *s, void *data)

0 commit comments

Comments
 (0)