qcacld-3.0: free cfgState->buf in failure cases.
qcacld-2.0 to qcacld-3.0 propagation As part of cleaning up pending action frame, if timeout happens for tx cnf event then indicate tx failure status as FAIL and free cfgState->buf to avoid memory leak. Change-Id: I6caaa8efeab769cce8c4cdfcc868101e63fd8e76 CRs-Fixed: 880779
This commit is contained in:

committed by
Satish Singh

parent
25b1952866
commit
146af2ac09
@@ -2081,6 +2081,11 @@ void hdd_cleanup_actionframe(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
|
|||||||
if (!rc) {
|
if (!rc) {
|
||||||
hddLog(CDF_TRACE_LEVEL_ERROR,
|
hddLog(CDF_TRACE_LEVEL_ERROR,
|
||||||
FL("HDD Wait for Action Confirmation Failed!!"));
|
FL("HDD Wait for Action Confirmation Failed!!"));
|
||||||
|
/*
|
||||||
|
* Inform tx status as FAILURE to upper layer and free
|
||||||
|
* cfgState->buf
|
||||||
|
*/
|
||||||
|
hdd_send_action_cnf(adapter, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user