diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-01-08 16:22:05 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-02-04 15:48:19 -0500 |
commit | c4d2ffac330fd013944654f11cdfc06ff5ca9bf4 (patch) | |
tree | 767096fd6407003c908b9fd713e249b4aede4218 /net/mac80211/debugfs_sta.c | |
parent | 2fae062e503bd087d1ef7aebfd5c6707c6ec5564 (diff) |
mac80211: fix agg_status debugfs file write
Initialize the buffer to all zeroes, otherwise the stack
data might be interpreted as the TID, which is likely to
fail completely.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/debugfs_sta.c')
-rw-r--r-- | net/mac80211/debugfs_sta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 80194b557a0c..2ecb4deddb5d 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c | |||
@@ -195,7 +195,7 @@ static ssize_t sta_agg_status_read(struct file *file, char __user *userbuf, | |||
195 | static ssize_t sta_agg_status_write(struct file *file, const char __user *userbuf, | 195 | static ssize_t sta_agg_status_write(struct file *file, const char __user *userbuf, |
196 | size_t count, loff_t *ppos) | 196 | size_t count, loff_t *ppos) |
197 | { | 197 | { |
198 | char _buf[12], *buf = _buf; | 198 | char _buf[12] = {}, *buf = _buf; |
199 | struct sta_info *sta = file->private_data; | 199 | struct sta_info *sta = file->private_data; |
200 | bool start, tx; | 200 | bool start, tx; |
201 | unsigned long tid; | 201 | unsigned long tid; |