mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
qcacmn: Fix multiple unmap of same netbuf
Clear HTC_TX_PACKET_FLAG_FIXUP_NETBUF flag in hif_send_head failure scenario to avoid multiple unamap of same netbuf. Change-Id: Id7f6aeba1eff0d23b76927fcbb03643409fc7859 CRs-Fixed: 2437034
This commit is contained in:
parent
4a994eff88
commit
0811d82877
1 changed files with 4 additions and 1 deletions
|
|
@ -635,10 +635,13 @@ static QDF_STATUS htc_issue_packets(HTC_TARGET *target,
|
|||
}
|
||||
|
||||
/* only unmap if we mapped in this function */
|
||||
if (IS_TX_CREDIT_FLOW_ENABLED(pEndpoint))
|
||||
if (IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) {
|
||||
qdf_nbuf_unmap(target->osdev,
|
||||
GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket),
|
||||
QDF_DMA_TO_DEVICE);
|
||||
pPacket->PktInfo.AsTx.Flags &=
|
||||
~HTC_TX_PACKET_FLAG_FIXUP_NETBUF;
|
||||
}
|
||||
|
||||
if (!pEndpoint->async_update) {
|
||||
LOCK_HTC_TX(target);
|
||||
|
|
|
|||
Loading…
Reference in a new issue