wcn36xx: drain pending indicator messages on shutdown
authorDaniel Mack <daniel@zonque.org>
Wed, 23 May 2018 08:14:55 +0000 (11:14 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 25 May 2018 10:08:01 +0000 (13:08 +0300)
commit773f9a28bcdafd6cb77fb1afc545c62746d53990
treed7e6ad635a97d1b3cea5fa2b8436cb005e8684ca
parent2a46c829a9266bf2a2be1a3d25dbac5fcd4eb9c1
wcn36xx: drain pending indicator messages on shutdown

When the interface is shut down, wcn36xx_smd_close() potentially races
against the queue worker. Make sure to cancel the work, and then free all
the remnants in hal_ind_queue manually.

This is again just a theoretical issue, not something that was triggered in
the wild.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/smd.c