]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: Check tx_stats before use it
authorYingying Tang <yintang@codeaurora.org>
Thu, 2 May 2019 13:36:50 +0000 (21:36 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 May 2019 14:03:47 +0000 (17:03 +0300)
commitc5707c593af484cc68ac3c69cd37b90432db9c82
treea6ad160e5b8f3372eca3442a8a6551a731dcc1ad
parent7b2e53269fc7e091bad4f7b4a62cf5e037c0c282
ath10k: Check tx_stats before use it

tx_stats will be freed and set to NULL before debugfs_sta node is
removed in station disconnetion process. So if read the debugfs_sta
node there may be NULL pointer error. Add check for tx_stats before
use it to resove this issue.

Signed-off-by: Yingying Tang <yintang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/debugfs_sta.c