ath9k: Fix potential use-after-free.
authorBen Greear <greearb@candelatech.com>
Wed, 13 Oct 2010 19:01:23 +0000 (12:01 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Oct 2010 19:45:23 +0000 (15:45 -0400)
commitc23cc81a5e5c1d4486b662cedd0afcdf9145f154
tree9b7a1a2b030d5298d1d4967f354bb09ec4e90232
parente4b55957eb695b43055b6badec026628b24fe80a
ath9k: Fix potential use-after-free.

The ath_debug_stat_tx references bf->bf_mpdu, which
is the skb consumed by  ath_tx_complete.  So, call
the ath_debug_stat_tx method first.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c