diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-10-18 10:36:19 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2018-11-05 14:09:58 +0300 |
| commit | 539b44e70c5b4ad82d2c0c97a4dfb37523d891f6 (patch) | |
| tree | 96e59c2df6380c543edef0a56a4fbf49a1e669c3 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 13104929d2ec32aec0552007d55b9e15bc07176b (diff) | |
| download | linux-539b44e70c5b4ad82d2c0c97a4dfb37523d891f6.tar.xz | |
ath10k: fixup extended per sta tx statistics
I had a couple concerns with this code. First, we definitely need to
set the error code if the kzalloc() fails. Secondly, I was worried that
if we didn't set "arsta->tx_stats" to NULL after freeing it, then it
looks to me like it might lead to a use after free. I can't test that,
but it's harmless to set it to NULL so I did.
Fixes: a904417fc876 ("ath10k: add extended per sta tx statistics support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
