diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 06c8c16cc711..2f1d820c2116 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1379,12 +1379,12 @@ static void hdd_send_re_assoc_event(struct net_device *dev, if (!rspRsnIe) { hddLog(LOGE, FL("Unable to allocate RSN IE")); - return; + goto done; } if (!assoc_req_ies) { hdd_err("Unable to allocate Assoc Req IE"); - return; + goto done; } if (pCsrRoamInfo == NULL) { hddLog(LOGE, FL("Invalid CSR roam info"));