mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
fd0d19c399
commit
f8f6e7e95d
1 changed files with 5 additions and 0 deletions
|
|
@ -2081,6 +2081,11 @@ void hdd_cleanup_actionframe(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
|
|||
if (!rc) {
|
||||
hddLog(CDF_TRACE_LEVEL_ERROR,
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue