ath10k: fix memory leak on caldata on error exit path
authorColin Ian King <colin.king@canonical.com>
Sat, 3 Sep 2016 16:38:19 +0000 (17:38 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 13 Sep 2016 12:24:20 +0000 (15:24 +0300)
commit5f4761dda2ba3743ceb5eb5b5e7483172927831a
tree4853a011b973b0676654819ecc244cf46724bad3
parent3cd32dde17ea938651b434fc35dee8370f555378
ath10k: fix memory leak on caldata on error exit path

caldata is not being free'd on the error exit path, causing
a memory leak and data definitely should not be freed. Free
caldata instead of data.

Thanks to Kalle Valo for spotting that data should not be
free'd.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c