diff options
| author | hqu <hqu@codeaurora.org> | 2017-11-17 17:12:09 +0800 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-11-23 06:46:42 -0800 |
| commit | 4db5bc1ac9a952e937ca279ff9aced02bb23741c (patch) | |
| tree | 7be127527c23f5aa07f7321e170bca814736b083 | |
| parent | 36c6b399f4564739bf07f1fbbefaa1ccd37fa5f6 (diff) | |
qcacld-3.0: Add SKB to internal tracking table in ipa i2w path
When define MEMORY_DEBUG macro for debugging memory issue,
even in normal case it still will report double free for ipa
i2w SKB.
Fix is to add ipa i2w SKB to internal tracking table.
Change-Id: I27b0afc79e8c39c99a73ec9a65a348ebf85960b6
CRs-Fixed: 2145344
| -rw-r--r-- | core/dp/txrx/ol_tx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/dp/txrx/ol_tx.c b/core/dp/txrx/ol_tx.c index 51d906567b72..dce4fa9b744e 100644 --- a/core/dp/txrx/ol_tx.c +++ b/core/dp/txrx/ol_tx.c @@ -299,6 +299,8 @@ qdf_nbuf_t ol_tx_send_ipa_data_frame(void *vdev, qdf_nbuf_t ret; if (qdf_unlikely(!pdev)) { + qdf_net_buf_debug_acquire_skb(skb, __FILE__, __LINE__); + ol_txrx_err("%s: pdev is NULL", __func__); return skb; } @@ -310,6 +312,13 @@ qdf_nbuf_t ol_tx_send_ipa_data_frame(void *vdev, /* Terminate the (single-element) list of tx frames */ qdf_nbuf_set_next(skb, NULL); + + /* + * Add SKB to internal tracking table before further processing + * in WLAN driver. + */ + qdf_net_buf_debug_acquire_skb(skb, __FILE__, __LINE__); + ret = OL_TX_SEND((struct ol_txrx_vdev_t *)vdev, skb); if (ret) { ol_txrx_dbg("%s: Failed to tx", __func__); |
