]> git.baikalelectronics.ru Git - 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)
commite9cf4b960bb4adb515260c78e80837e80003976b
treee2cc737d1c962cca801d61aa7a609df9dfc3bdef
parent3ca6ead132e0306286327ed32897f5a76b1e43c9
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