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
このコミットが含まれているのは:
Nirav Shah
2019-04-13 22:43:29 +05:30
committed by nshrivas
コミット 0811d82877

ファイルの表示

@@ -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);