As a part of LL stats get NB operation, the driver sends the LL stats req to the FW, waits for the response and sends back the stats in a synchronous reply. All this happens as a part of one single NB operation. Within this operation, if an rmmod comes, there can be a possiblity of a memory leak. In function hdd_link_layer_process_radio_stats, there is a check to validate the hdd_context and return if the driver is undergoing load/unload. As a part of the premature return, some memory are not freed properly. To resolve this, remove the validity check from the NB operation. The operation itself comes with DSC synchronization and ensures that the hdd_context remains valid atleast until the operation is complete. Thus there is no need for the redundant check of validity of hdd_context, which resolves the memory leak issue also. Change-Id: Ieea755e83addac99659dbd6e0e5f160b86e6f9fa CRs-Fixed: 2679081 |
||
---|---|---|
.. | ||
bmi | ||
cds | ||
dp | ||
hdd | ||
mac | ||
pld | ||
sap | ||
sme | ||
wma |