Commit a0572d93c13d28cc25b2c286ec9378eeb4ddd46c
1 parent
d9d2e9d5c9
Exists in
master
and in
4 other branches
mac80211: disallow seeks in minstrel debug code
No need for seek here, so let's just use nonseekable_open. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
net/mac80211/rc80211_minstrel_ht_debugfs.c
... | ... | @@ -90,7 +90,7 @@ |
90 | 90 | MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10); |
91 | 91 | ms->len = p - ms->buf; |
92 | 92 | |
93 | - return 0; | |
93 | + return nonseekable_open(inode, file); | |
94 | 94 | } |
95 | 95 | |
96 | 96 | static const struct file_operations minstrel_ht_stat_fops = { |
... | ... | @@ -98,6 +98,7 @@ |
98 | 98 | .open = minstrel_ht_stats_open, |
99 | 99 | .read = minstrel_stats_read, |
100 | 100 | .release = minstrel_stats_release, |
101 | + .llseek = no_llseek, | |
101 | 102 | }; |
102 | 103 | |
103 | 104 | void |