ath10k: free wmi mgmt event skb when parsing fails
authorRaja Mani <rmani@qti.qualcomm.com>
Mon, 1 Jun 2015 09:23:33 +0000 (14:53 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 9 Jun 2015 10:40:42 +0000 (13:40 +0300)
commit08603f2e1c31839510747899a5e0b9448b502ee0
tree61e647ed08432f9397eaabab96ae7285bf0f3113
parent0bcbbe679b66fee1b56def5cb30bfb4f616b1127
ath10k: free wmi mgmt event skb when parsing fails

When wmi mgmt event function fails to parse given skb,
it should be freed on failure condition to avoid memory
leaks. Found this during the code review.

Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi.c