summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-14 15:46:33 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-09-26 14:02:28 -0400
commit86c7d8d4168ce85cb9d880b247f941786ba0724b (patch)
tree225662eac4a14ee2ebed62cb93560defd5f4b32b /drivers/net
parent7c6a4acc645cdd938300d5f9bb367f72170af310 (diff)
downloadlinux-86c7d8d4168ce85cb9d880b247f941786ba0724b.tar.gz
linux-86c7d8d4168ce85cb9d880b247f941786ba0724b.tar.bz2
linux-86c7d8d4168ce85cb9d880b247f941786ba0724b.zip
ath9k: fix stale flag handling on buffer clone
Fixes a regression from commit "ath9k: shrink a few data structures by reordering fields" When cloning a buffer, the stale flag (part of bf_state now) needs to be reset after copying the state to prevent tx processing hangs. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/xmit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index 35b515fe3ffa..a749e0f5ab54 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -399,6 +399,7 @@ static struct ath_buf* ath_clone_txbuf(struct ath_softc *sc, struct ath_buf *bf)
tbf->bf_buf_addr = bf->bf_buf_addr;
memcpy(tbf->bf_desc, bf->bf_desc, sc->sc_ah->caps.tx_desc_len);
tbf->bf_state = bf->bf_state;
+ tbf->bf_state.stale = false;
return tbf;
}