Skip to content
Snippets Groups Projects
Commit c4d2ffac authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 2fae062e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment