mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Unmap HTT Receive Buffers
qcacld-2.0 to qcacld-3.0 propagation In the HTT hash de-init function, the network buffers (skb) need to be unmapped before they are freed. Change-Id: I879de6671d788f1ab99f7645ab424d56eafdbfd1 CRs-Fixed: 815265
This commit is contained in:
parent
bda664359b
commit
cf475d2465
1 changed files with 7 additions and 0 deletions
|
|
@ -126,6 +126,13 @@ void htt_rx_hash_deinit(struct htt_pdev_t *pdev)
|
|||
pdev->rx_ring.
|
||||
listnode_offset);
|
||||
if (hash_entry->netbuf) {
|
||||
#ifdef DEBUG_DMA_DONE
|
||||
cdf_nbuf_unmap(pdev->osdev, hash_entry->netbuf,
|
||||
CDF_DMA_BIDIRECTIONAL);
|
||||
#else
|
||||
cdf_nbuf_unmap(pdev->osdev, hash_entry->netbuf,
|
||||
CDF_DMA_FROM_DEVICE);
|
||||
#endif
|
||||
cdf_nbuf_free(hash_entry->netbuf);
|
||||
hash_entry->paddr = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue