projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fae062
)
mac80211: fix agg_status debugfs file write
author
Johannes Berg
<johannes.berg@intel.com>
Wed, 8 Jan 2014 21:22:05 +0000
(22:22 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 4 Feb 2014 20:48:19 +0000
(21:48 +0100)
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>
net/mac80211/debugfs_sta.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/debugfs_sta.c
b/net/mac80211/debugfs_sta.c
index 80194b557a0cff8f3d2aba52f06cfc348212abf8..2ecb4deddb5df0ca74eb9630de15bbc9c789f274 100644
(file)
--- 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,
static ssize_t sta_agg_status_write(struct file *file, const char __user *userbuf,
size_t count, loff_t *ppos)
{
- char _buf[12], *buf = _buf;
+ char _buf[12]
= {}
, *buf = _buf;
struct sta_info *sta = file->private_data;
bool start, tx;
unsigned long tid;