diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-10-08 14:45:25 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-10-09 10:14:55 -0400 |
commit | 60631c5c10efbf24a77e1ca1ddecdb4e82ed2833 (patch) | |
tree | 31202c3fc90a11936a8e41092d79562762d04c39 /drivers/net/wireless/ath/ath10k/debug.h | |
parent | a24b88b56074424a413acc2d2a517fb82f5e7c2f (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/debug.h')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/debug.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/debug.h b/drivers/net/wireless/ath/ath10k/debug.h index fa581486626f..46e640a6968d 100644 --- a/drivers/net/wireless/ath/ath10k/debug.h +++ b/drivers/net/wireless/ath/ath10k/debug.h | |||
@@ -46,6 +46,7 @@ extern __printf(1, 2) int ath10k_warn(const char *fmt, ...); | |||
46 | int ath10k_debug_start(struct ath10k *ar); | 46 | int ath10k_debug_start(struct ath10k *ar); |
47 | void ath10k_debug_stop(struct ath10k *ar); | 47 | void ath10k_debug_stop(struct ath10k *ar); |
48 | int ath10k_debug_create(struct ath10k *ar); | 48 | int ath10k_debug_create(struct ath10k *ar); |
49 | void ath10k_debug_destroy(struct ath10k *ar); | ||
49 | void ath10k_debug_read_service_map(struct ath10k *ar, | 50 | void ath10k_debug_read_service_map(struct ath10k *ar, |
50 | void *service_map, | 51 | void *service_map, |
51 | size_t map_size); | 52 | size_t map_size); |
@@ -67,6 +68,10 @@ static inline int ath10k_debug_create(struct ath10k *ar) | |||
67 | return 0; | 68 | return 0; |
68 | } | 69 | } |
69 | 70 | ||
71 | static inline void ath10k_debug_destroy(struct ath10k *ar) | ||
72 | { | ||
73 | } | ||
74 | |||
70 | static inline void ath10k_debug_read_service_map(struct ath10k *ar, | 75 | static inline void ath10k_debug_read_service_map(struct ath10k *ar, |
71 | void *service_map, | 76 | void *service_map, |
72 | size_t map_size) | 77 | size_t map_size) |