Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e744a980 authored by Will Huang's avatar Will Huang Committed by nshrivas
Browse files

qcacld-3.0: Fix possible memory leak when set station key

If calling lim_send_set_sta_key_req with sendRsp==false, it didn't free
the tpSetStaKeyParams memory allocated in this function. This scenario
is possible hit when station key update during roaming before new bss
adding.

Change-Id: I29209576622bc2495a7ce3064e82efca2e70d19a
CRs-Fixed: 2452108
parent 93800724
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2472,6 +2472,8 @@ void wma_set_stakey(tp_wma_handle wma_handle, tpSetStaKeyParams key_info)
	if (key_info->sendRsp)
		wma_send_msg_high_priority(wma_handle, WMA_SET_STAKEY_RSP,
					   (void *)key_info, 0);
	else
		qdf_mem_free(key_info);
}

/**