From: Vasanthakumar Thiagarajan Date: Tue, 11 May 2010 02:41:34 +0000 (-0700) Subject: ath9k: Fix bug in handling rx frames with invalid descriptor content X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=083e3e8d3dfeb191f349081c052ad3d20e8861f3;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ath9k: Fix bug in handling rx frames with invalid descriptor content Don't send them for further processing. Signed-off-by: Vasanthakumar Thiagarajan Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index ac60c4ee62d3..da54ff5f3d7e 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);