diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-08-15 18:32:42 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2010-09-11 20:59:39 +0200 |
commit | b096bc3304fd3e90d6fe65b1e295694ecd5448f9 (patch) | |
tree | c240a156224e3c21b7801add58ae872c2e15e292 /net | |
parent | 40ffa3edff8f31c7279a842f4ed077cf40993552 (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht_debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht_debugfs.c b/net/mac80211/rc80211_minstrel_ht_debugfs.c index 4a5a4b3e7799..cefcb5d2dae6 100644 --- a/net/mac80211/rc80211_minstrel_ht_debugfs.c +++ b/net/mac80211/rc80211_minstrel_ht_debugfs.c @@ -90,7 +90,7 @@ minstrel_ht_stats_open(struct inode *inode, struct file *file) MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10); ms->len = p - ms->buf; - return 0; + return nonseekable_open(inode, file); } static const struct file_operations minstrel_ht_stat_fops = { @@ -98,6 +98,7 @@ static const struct file_operations minstrel_ht_stat_fops = { .open = minstrel_ht_stats_open, .read = minstrel_stats_read, .release = minstrel_stats_release, + .llseek = no_llseek, }; void |