qcacld-3.0: Free the beacon memory when sap restart fails
Whenever there is a subsystem restart the sap is internally restarted in the driver, whenever there is a failure during this sap restart there could be a memory leak. Fix is to free the beacon memory whenever the sap restart fails. Change-Id: If329aacceef50124956bddc049ee8e55e880177d CRs-Fixed: 2671251
This commit is contained in:
1 parent
f0eeaeb9d2
commit
fe3313963a
1 file changed
+5
-1
@@ -14230,7 +14230,11 @@ end:
|
||||
* in hdd_stop_adapter
|
||||
*/
|
||||
hdd_err("SAP restart after SSR failed! Reload WLAN and try SAP again");
|
||||
|
||||
/* Free the beacon memory in case of failure in the sap restart */
|
||||
if (ap_adapter->session.ap.beacon) {
|
||||
qdf_mem_free(ap_adapter->session.ap.beacon);
|
||||
ap_adapter->session.ap.beacon = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef QCA_CONFIG_SMP
|
||||
|
||||
Reference in new issue
Block a user