projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9d2e9d
)
mac80211: disallow seeks in minstrel debug code
author
Arnd Bergmann
<arnd@arndb.de>
Sun, 15 Aug 2010 16:32:42 +0000
(18:32 +0200)
committer
Arnd Bergmann
<arnd@arndb.de>
Thu, 16 Sep 2010 08:33:17 +0000
(10:33 +0200)
No need for seek here, so let's just use nonseekable_open.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
net/mac80211/rc80211_minstrel_ht_debugfs.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/rc80211_minstrel_ht_debugfs.c
b/net/mac80211/rc80211_minstrel_ht_debugfs.c
index 4a5a4b3e7799f1845421843e22fee503ef62ffb4..cefcb5d2dae6e40888af8d712ed564a00cebc42c 100644
(file)
--- 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