]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: unregister spectral before mac
authorSimon Wunderlich <sw@simonwunderlich.de>
Tue, 12 Aug 2014 15:12:17 +0000 (17:12 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 14 Aug 2014 12:42:17 +0000 (15:42 +0300)
commit1df8afb59ac45060a066b260d3582d0a12718b86
treeb2da24d87b7590705ad22acad270f9693f2df659
parentb67ae38b406026fc69003a849376907a18e7d8e4
ath10k: unregister spectral before mac

If spectral is unregistered after mac80211, the relayfs file has already
been removed recursively by mac/cfg80211, and spectral tries to remove
the file once more, thus leading to double free problems. Better clean
up spectral before to avoid that problem.

Reported-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c