mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
wl12xx: fix a memory leak of probereq template upon recovery
wlvif->probereq is zeroed when adding an interface but the skb pointed to isn't freed when the interface is removed. This would lead to a mem leak on every recovery. Fix it by freeing the skb when removing the interface. Signed-off-by: Eyal Shapira <[email protected]> Signed-off-by: Luciano Coelho <[email protected]>
This commit is contained in:
parent
830be7e021
commit
3eba4a0e6d
1 changed files with 2 additions and 0 deletions
|
|
@ -2358,6 +2358,8 @@ deinit:
|
|||
wl1271_free_ap_keys(wl, wlvif);
|
||||
}
|
||||
|
||||
dev_kfree_skb(wlvif->probereq);
|
||||
wlvif->probereq = NULL;
|
||||
wl12xx_tx_reset_wlvif(wl, wlvif);
|
||||
if (wl->last_wlvif == wlvif)
|
||||
wl->last_wlvif = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue