]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: free cached fw bin contents when get board id fails
authorRaja Mani <rmani@qti.qualcomm.com>
Thu, 10 Mar 2016 04:55:07 +0000 (10:25 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 18 Mar 2016 07:53:26 +0000 (09:53 +0200)
commit36b5e240a0c159fb83d5186b8b6ad825a28b1266
tree344f41ef9eb7620a8f473e18307ee7324d69532f
parente4a43b251f8dcb18f93e8182b312df762a36b1ad
ath10k: free cached fw bin contents when get board id fails

ath10k_core_probe_fw() simply returns error without freeing
cached firmware file content when get board id operation fails.
Free cached fw bin data in failure case to avoid memory leak.

Fixes: fa56f595814d ("ath10k: select board data based on BMI chip id and board id")
Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c