]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix using sta->drv_priv before initializing it
authorFelix Fietkau <nbd@nbd.name>
Fri, 19 Aug 2016 10:37:46 +0000 (13:37 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 22 Aug 2016 16:07:56 +0000 (19:07 +0300)
commitfeff157042a7b2263dd4e4fa29e227e4c91206b6
tree524d8c58e2ad0b2ed4293cff298b6dab50ad4b0c
parent30d62992f8beecdf6cdf320322af275d6ca3744c
ath9k: fix using sta->drv_priv before initializing it

A station pointer can be passed to the driver on tx, before it has been
marked as associated. Since ath9k_sta_state was initializing the entry
too late, it resulted in some spurious crashes.

Fixes: a22d8b601246 ("ath9k: Use sta_state() callback")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/main.c