]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ath9k_htc: Handle WMI timeouts properly
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 16 Apr 2010 06:24:01 +0000 (11:54 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Apr 2010 19:47:12 +0000 (15:47 -0400)
commit6ce34ec11c6297562e70e27c57a24cd27d4cd2b1
treee2cc737d1c962cca801d61aa7a609df9dfc3bdef
parenteac8e385e9446e591aacbc9ef2c2a3b0836dd2d4
ath9k_htc: Handle WMI timeouts properly

If a WMI command has timed out for some reason,
a late WMI response would end up updating the
response region of a new WMI request that has been
issued in the meantime.

Fix this race condition by dropping a WMI response
if a new WMI command has been issued.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/wmi.c
drivers/net/wireless/ath/ath9k/wmi.h