wlcore: consolidate free_link and always call it
authorArik Nemtsov <arik@wizery.com>
Tue, 27 Nov 2012 06:44:54 +0000 (08:44 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 5 Dec 2012 07:41:47 +0000 (09:41 +0200)
commit6c4c45346289ec1c8a6a204e2c81325a4cf96924
tree7233037afca5111bff8f2ac9c5e407181e339d45
parentd935e385f88616fa867406de97521e07fe41539d
wlcore: consolidate free_link and always call it

Make sure free_link is always called when removing an interface. This
ensures all skbs belonging to this interface are returned to mac80211.
Otherwise these dangling skbs might crash the system on the next
call to wl1271_tx_reset_link_queues(). This happens on recovery/stop or
an unsuccessful Tx flush.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/cmd.c
drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/tx.c