]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: fix a memory leak of probereq template upon recovery
authorEyal Shapira <eyal@wizery.com>
Mon, 19 Mar 2012 10:06:27 +0000 (12:06 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 10 Apr 2012 09:42:49 +0000 (12:42 +0300)
commit87b9e005269baee0d387ca2931cf3e838b063af5
tree5c8fa54be9f81253a4063b339458cb9a5c5c02dd
parentc4554232a4a5e57ae9ad620a52a3a89252ffa628
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 <eyal@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c