summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2010-05-10 19:41:34 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-05-11 15:14:21 -0400
commit083e3e8d3dfeb191f349081c052ad3d20e8861f3 (patch)
tree4e38032f5acc54c8dac80beb1e069e1cc4ef401a
parent7fca8e26662e83fec0a0c55b9a977fe9e79f01da (diff)
ath9k: Fix bug in handling rx frames with invalid descriptor content
Don't send them for further processing. Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index ac60c4ee62d..da54ff5f3d7 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -718,6 +718,7 @@ static bool ath_edma_get_buffers(struct ath_softc *sc,
__skb_unlink(skb, &rx_edma->rx_fifo);
list_add_tail(&bf->list, &sc->rx.rxbuf);
ath_rx_edma_buf_link(sc, qtype);
+ return true;
}
skb_queue_tail(&rx_edma->rx_buffers, skb);