android_kernel_xiaomi_sm8350/core
Sourav Mohapatra 00f5651b66 qcacld-3.0: Remove validate context check in LL stats get NB ops
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
2020-05-08 12:33:22 -07:00
..
bmi
cds qcacld-3.0: Use crypto API to fill and validate mmie 2020-05-04 03:50:06 -07:00
dp qcacld-3.0: Update OFDM and CCK flags for packet capture mode 2020-05-06 01:26:29 -07:00
hdd qcacld-3.0: Remove validate context check in LL stats get NB ops 2020-05-08 12:33:22 -07:00
mac Release 5.2.0.184X 2020-05-08 10:47:33 -07:00
pld qcacld-3.0: Fix build error for PLs which use 4.14 kernel 2020-04-28 12:08:18 -07:00
sap qcacld-3.0: Correct 160MHz SAP dfs flag 2020-05-08 16:40:04 +08:00
sme qcacld-3.0: Disable BTM offload to fw if peer support MBO/OCE 2020-05-07 01:55:06 -07:00
wma qcacld-3.0: Validate return value of target_psoc_get_mac_phy_cap 2020-05-05 15:05:57 -07:00