ath10k: fix ath10k_debug_start() locking
authorKalle Valo <kvalo@qca.qualcomm.com>
Tue, 8 Oct 2013 18:45:25 +0000 (21:45 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 9 Oct 2013 14:14:55 +0000 (17:14 +0300)
commit60631c5c10efbf24a77e1ca1ddecdb4e82ed2833
tree31202c3fc90a11936a8e41092d79562762d04c39
parenta24b88b56074424a413acc2d2a517fb82f5e7c2f
ath10k: fix ath10k_debug_start() locking

ath10k_debug_start() was not called with conf_mutex, fix that. Also there was a
deadlock in ath10k_debug_stop(), rename it to ath10k_debug_destroy() and call
it only when the device is destroyed.

Reported-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/debug.h