ath10k: fix missing checks for bmi reads and writes
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 05:19:03 +0000 (00:19 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 23 Sep 2019 08:16:23 +0000 (11:16 +0300)
commit8da96730331dab78e7194c5af48efbcf90264d02
tree8d9296c88dce045248d480b18f12d97325136cb0
parent40f4ef5e92326ab127bdeb6f024855c8c91de608
ath10k: fix missing checks for bmi reads and writes

ath10k_bmi_write32 and ath10k_bmi_read32 can fail. The fix
checks their statuses to avoid potential undefined behaviors.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c