Skip to content

Commit

Permalink
mt76: set fops_tx_stats.owner to THIS_MODULE
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
TaeheeYoo authored and nbd168 committed Dec 4, 2020
1 parent e4c5ead commit f9df085
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9df085

Please sign in to comment.