Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08603f2e authored by Raja Mani's avatar Raja Mani Committed by Kalle Valo
Browse files

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: default avatarRaja Mani <rmani@qti.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 0bcbbe67
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1451,6 +1451,7 @@ int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb)
	ret = ath10k_wmi_pull_mgmt_rx(ar, skb, &arg);
	if (ret) {
		ath10k_warn(ar, "failed to parse mgmt rx event: %d\n", ret);
		dev_kfree_skb(skb);
		return ret;
	}