ath10k: fix potential memory leak in ath10k_wmi_tlv_op_pull_fw_stats()
authorChristian Lamparter <chunkeey@googlemail.com>
Thu, 29 Dec 2016 14:12:09 +0000 (16:12 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 30 Dec 2016 09:11:17 +0000 (11:11 +0200)
commit097e46d2ae90265d1afe141ba6208ba598b79e01
tree27d922a1f0f3b2e6058bde58514ea2d304cb4da5
parent8617690174041dfe959b6ad71f1ff93ef4bea5d3
ath10k: fix potential memory leak in ath10k_wmi_tlv_op_pull_fw_stats()

ath10k_wmi_tlv_op_pull_fw_stats() uses tb = ath10k_wmi_tlv_parse_alloc(...)
function, which allocates memory. If any of the three error-paths are
taken, this tb needs to be freed.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi-tlv.c