mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacmn: Free memory for stats event to os_if in timeout
In case os_if request times out, free the corresponding memory allocated for stats event to os_if. Change-Id: I23bd65f2b79c71070d65b5e4045eaf4e17113354 CRs-Fixed: 2262653
This commit is contained in:
parent
5840784be3
commit
2e7637575d
1 changed files with 2 additions and 0 deletions
|
|
@ -285,6 +285,7 @@ static void get_peer_rssi_cb(struct stats_event *ev, void *cookie)
|
|||
request = osif_request_get(cookie);
|
||||
if (!request) {
|
||||
cfg80211_err("Obsolete request");
|
||||
ucfg_mc_cp_stats_free_stats_resources(ev);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -367,6 +368,7 @@ static void get_station_stats_cb(struct stats_event *station_info, void *cookie)
|
|||
request = osif_request_get(cookie);
|
||||
if (!request) {
|
||||
cfg80211_err("Obsolete request");
|
||||
ucfg_mc_cp_stats_free_stats_resources(station_info);
|
||||
return;
|
||||
}
|
||||
priv = osif_request_priv(request);
|
||||
|
|
|
|||
Loading…
Reference in a new issue