ath10k: drain tx before restarting hw
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 26 May 2014 09:46:03 +0000 (12:46 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 May 2014 09:27:59 +0000 (12:27 +0300)
commitbca7bafbe2b75ed31cc6943b81218ea0f8a13686
treebc42e3d0bf2ee9a4aae1515584c214976e00a12c
parentc5058f5b82f226b236dc5a65015152ed3c23efff
ath10k: drain tx before restarting hw

This makes sure no further tx requests are
submitted to HTT before driver teardown.

This should prevent invalid pointer/NULL
dereference on htt tx pool in ath10k_htt_tx() in
some cases of heavy traffic.

kvalo: remove the WARN_ON() if conf_mutex is held

Reported-By: Ben Greear <greearb@candelatech.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c