mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
qcacld-3.0: Fix memory leak in hdd_send_re_assoc_event
In case kmalloc fail goto end of function and properly free other possible allocated memory buffers. Change-Id: I41d7577471b475b0a2a0daa83c6ffc845314ceb4 CRs-Fixed: 958755
This commit is contained in:
parent
fec3dbedc5
commit
dafda298f3
1 changed files with 2 additions and 2 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue