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)
commit9e7251fa38978b85108c44743e1436d48e8d0d76
treea6ad160e5b8f3372eca3442a8a6551a731dcc1ad
parent49ed34b835e231aa941257394716bc689bc98d9f
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