mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
qcacmn: Conditionally unmap nbuf in htc_issue_packets
htc_issue_packets currently unmaps all nbufs during error handling. However, htc_issue_packets only maps nbufs under some situations. Make the criteria for unmapping match the criteria for mapping. Change-Id: Ia77cffb30edbdb4d1378af38368f860c6f8c0b18 CRs-Fixed: 2266437
This commit is contained in:
parent
3bdf380c03
commit
942f939848
1 changed files with 7 additions and 3 deletions
|
|
@ -633,9 +633,13 @@ static QDF_STATUS htc_issue_packets(HTC_TARGET *target,
|
|||
("hif_send Failed status:%d\n",
|
||||
status));
|
||||
}
|
||||
qdf_nbuf_unmap(target->osdev,
|
||||
GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket),
|
||||
QDF_DMA_TO_DEVICE);
|
||||
|
||||
/* only unmap if we mapped in this function */
|
||||
if (IS_TX_CREDIT_FLOW_ENABLED(pEndpoint))
|
||||
qdf_nbuf_unmap(target->osdev,
|
||||
GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket),
|
||||
QDF_DMA_TO_DEVICE);
|
||||
|
||||
if (!pEndpoint->async_update) {
|
||||
LOCK_HTC_TX(target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue