qcacld-3.0: Fix sap context memory leak

Make sure to decrement sap context ref count in wlansap_roam_callback
for failure case also, else this will prevent freeing sap context memory
in during driver unload in wlansap_close().

Change-Id: I07bd8a254196e2fc38018b738b20a9f6746d6b92
CRs-Fixed: 2012433
Этот коммит содержится в:
Arif Hussain
2017-03-02 18:10:19 -08:00
коммит произвёл snandini
родитель 7d6d36059e
Коммит 8cc9d8407b

Просмотреть файл

@@ -920,6 +920,7 @@ wlansap_roam_callback(void *ctx, tCsrRoamInfo *csr_roam_info, uint32_t roamId,
if (!hal) {
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
FL("Invalid handle"));
wlansap_context_put(sap_ctx);
return QDF_STATUS_E_NOMEM;
}