2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 10:13:58 +08:00
linux-next/drivers/net/wireless/marvell
Brian Norris ce32d1d837 mwifiex: unregister wiphy before freeing resources
It's possible for some control interfaces (e.g., scans, set freq) to be
active after we've stopped our main work queue and the netif TX queues.
These don't get completely shut out until we've unregistered the wdevs
and wiphy.

So let's only free command buffers and poison our lists after
wiphy_unregister().

This resolves various use-after-free issues seen when resetting the
device.

Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-07-28 17:47:47 +03:00
..
libertas Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
libertas_tf networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
mwifiex mwifiex: unregister wiphy before freeing resources 2017-07-28 17:47:47 +03:00
Kconfig
Makefile
mwl8k.c mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00