]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdedb567f53e806e119b292f171b398ddc4b721bc
tree4853a011b973b0676654819ecc244cf46724bad3
parent3e6dbc4e64d07e0e2e51d183614160c50212f7b2
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