[PATCH 5.2 160/413] ath10k: add missing error handling