mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
wl12xx: free ap keys only in ap mode
The ap keys should be freed only when removing ap role (otherwise, some arbitrary data might get freed). Signed-off-by: Eliad Peller <[email protected]> Signed-off-by: Luciano Coelho <[email protected]>
This commit is contained in:
parent
690142e988
commit
830be7e021
1 changed files with 1 additions and 1 deletions
|
|
@ -2355,10 +2355,10 @@ deinit:
|
|||
for (i = 0; i < CONF_TX_MAX_AC_COUNT; i++)
|
||||
wl12xx_free_rate_policy(wl,
|
||||
&wlvif->ap.ucast_rate_idx[i]);
|
||||
wl1271_free_ap_keys(wl, wlvif);
|
||||
}
|
||||
|
||||
wl12xx_tx_reset_wlvif(wl, wlvif);
|
||||
wl1271_free_ap_keys(wl, wlvif);
|
||||
if (wl->last_wlvif == wlvif)
|
||||
wl->last_wlvif = NULL;
|
||||
list_del(&wlvif->list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue