Merge "qcacld-3.0: Fix a memory leak in hdd_assoc handler" into wlan-cld3.driver.lnx.2.0

This commit is contained in:
CNSS_WLAN Service 2017-12-03 15:27:31 -08:00 • committed by Gerrit - the friendly Code Review server
commit c2149cac94

View file

@ -2787,6 +2787,10 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
eCSR_DISCONNECT_REASON_UNSPECIFIED);
}
return QDF_STATUS_E_FAILURE;
} else {
cfg80211_put_bss(
hdd_ctx->wiphy,
bss);
}
if (roam_info->u.pConnectedProfile->AuthType ==
eCSR_AUTH_TYPE_FT_RSN
@ -3003,10 +3007,6 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
}
}
if (!hddDisconInProgress) {
cfg80211_put_bss(
hdd_ctx->wiphy,
bss);
/*
* Perform any WMM-related association
* processing.