ath9k: Fix bug in paprd
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Thu, 24 Jun 2010 09:42:44 +0000 (02:42 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 24 Jun 2010 19:42:39 +0000 (15:42 -0400)
commitca369eb494e45a3e3b8960775f88125fe1fbb0f2
tree2a53c84c5d848e73a271005df56b754334e5d1a2
parent75f64dd54a185150ebfc45e99351c890d4a2252f
ath9k: Fix bug in paprd

It is possbile that the transmission of paprd test frame
might not get completed in 100ms if tx is stuck. Freeing
this skb upon timeout in ath_paprd_calibrate() will result
in accessing already freed memory when the associated pending
buffer is drained in txq. This patch fixes this issue.

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/xmit.c