aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2010-01-30 19:55:09 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-02-01 15:40:07 -0500
commit4c82bf8e5689b1dddd9bcec70efc3b70edef1670 (patch)
tree28ad6c29c4b121e0a0aa5013d7ee67ed5d2de3a2 /net/mac80211
parent9501fefec6aa9a3319bb61edb99851ba30653f30 (diff)
mac80211: reduce stack usage in sta_ht_capa_read()
The maximal size of the "ht_capa" file is 430 bytes. In most cases, it's much shorter. Use a 512 byte long buffer. 1024 bytes is too much and causes a warning with CONFIG_FRAME_WARN=1024. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/debugfs_sta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c
index 0d4a759ba72c..84865e7ef13b 100644
--- a/net/mac80211/debugfs_sta.c
+++ b/net/mac80211/debugfs_sta.c
@@ -165,7 +165,7 @@ static ssize_t sta_ht_capa_read(struct file *file, char __user *userbuf,
165 if (_cond) \ 165 if (_cond) \
166 p += scnprintf(p, sizeof(buf)+buf-p, "\t" _str "\n"); \ 166 p += scnprintf(p, sizeof(buf)+buf-p, "\t" _str "\n"); \
167 } while (0) 167 } while (0)
168 char buf[1024], *p = buf; 168 char buf[512], *p = buf;
169 int i; 169 int i;
170 struct sta_info *sta = file->private_data; 170 struct sta_info *sta = file->private_data;
171 struct ieee80211_sta_ht_cap *htc = &sta->sta.ht_cap; 171 struct ieee80211_sta_ht_cap *htc = &sta->sta.ht_cap;