aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-08-15 18:32:42 +0200
committerArnd Bergmann <arnd@arndb.de>2010-09-16 10:33:17 +0200
commita0572d93c13d28cc25b2c286ec9378eeb4ddd46c (patch)
treeca5df6d671eee78e0572a00b2295718b828b8c34 /net
parentlirc: make chardev nonseekable (diff)
downloadlinux-a0572d93c13d28cc25b2c286ec9378eeb4ddd46c.tar.gz
linux-a0572d93c13d28cc25b2c286ec9378eeb4ddd46c.zip
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.c3
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
s_device.c?id=8d5a49e9e31ba1ddd34a54b2351d068a90c78707&follow=1'>net/tls: add helper for testing if socket is RX offloadedJakub Kicinski2-2/+12 2019-12-19nfp: pass packet pointer to nfp_net_parse_meta()Jakub Kicinski1-10/+8 2019-12-19nfp: flower: update flow merge code to support IPv6 tunnelsJohn Hurley1-5/+23 2019-12-19nfp: flower: support ipv6 tunnel keep-alive messages from fwJohn Hurley4-0/+67 2019-12-19nfp: flower: handle notifiers for ipv6 route changesJohn Hurley2-68/+181 2019-12-19nfp: flower: handle ipv6 tunnel no neigh requestJohn Hurley4-8/+116 2019-12-19nfp: flower: modify pre-tunnel and set tunnel action for ipv6John Hurley3-30/+62 2019-12-19nfp: flower: offload list of IPv6 tunnel endpoint addressesJohn Hurley5-1/+141 2019-12-19nfp: flower: compile match for IPv6 tunnelsJohn Hurley4-51/+246 2019-12-19nfp: flower: move udp tunnel key match compilation to helper functionJohn Hurley1-22/+35 2019-12-19nfp: flower: pass flow rule pointer directly to match functionsJohn Hurley1-49/+27 2019-12-19hdlcdrv: replace unnecessary assertion in hdlcdrv_registerAditya Pakki1-2/+0 2019-12-19net: mvpp2: cycle comphy to power it downRussell King1-0/+10 2019-12-19net: sfp: report error on failure to read sfp soft statusRussell King1-2/+9 2019-12-19net: phy: marvell: use genphy_check_and_restart_aneg()Russell King1-20/+1 2019-12-19net: phy: marvell: use phy_modify_changed()Russell King1-16/+10 2019-12-19net: phy: marvell: use existing clause 37 definitionsRussell King1-18/+8 2019-12-19net: phy: marvell: consolidate phy status readingRussell King1-43/+17 2019-12-19net: phy: marvell: use positive logic for link stateRussell King1-4/+3 2019-12-19net: phy: marvell: initialise link partner state earlierRussell King1-20/+5 2019-12-19net: phy: marvell: rearrange to use genphy_read_lpa()Russell King1-34/+32 2019-12-19net: phy: provide and use genphy_read_status_fixed()Russell King4-47/+41 2019-12-19net: phy: add genphy_check_and_restart_aneg()Russell King2-17/+32 2019-12-19net: phy: use phy_resolve_aneg_pause()Russell King3-14/+3 2019-12-19net: phy: remove redundant .aneg_done initialisersRussell King2-7/+0 2019-12-18net: stmmac: tc: Fix TAPRIO division operationJose Abreu1-2/+4