Unverified Commit 79fe680b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6407 wifi: ath10k: fix NULL pointer dereference in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()

parents ba381b66 2ea3d8f6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -844,6 +844,10 @@ ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev(struct ath10k *ar, struct sk_buff *skb,
	}

	ev = tb[WMI_TLV_TAG_STRUCT_MGMT_TX_COMPL_EVENT];
	if (!ev) {
		kfree(tb);
		return -EPROTO;
	}

	arg->desc_id = ev->desc_id;
	arg->status = ev->status;