]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Race condition in accessing TX and RX buffers.
authorSenthil Balasubramanian <senthilkumar@atheros.com>
Thu, 13 Nov 2008 12:31:08 +0000 (18:01 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Nov 2008 21:41:31 +0000 (16:41 -0500)
commit1742b83e406f47f9c6e0cd91b2a66057cd17044f
tree31381e563681f4ac8a70d3a77b0134d829724dc3
parentbdd61b1d83e93bd630925262c939797f16280571
ath9k: Race condition in accessing TX and RX buffers.

Race condition causes RX buffers to be accessed even before it is
initialized. The RX and TX buffers are initialized immediately after
the hardware is registered with mac80211. The mac80211 start callback
is ready to be fired once the device is registered for a case when the
wpa_supplicant is also running at the same time.

The same race condition is also possible for RKFILL registration
as RFKILL init happens after the device registration with mac80211
and it is possible that rfkill_register would be called even before
it is initialized.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c