ath9k: Fix bug in handling rx frames with invalid descriptor content
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Tue, 11 May 2010 02:41:34 +0000 (19:41 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 May 2010 19:14:21 +0000 (15:14 -0400)
Don't send them for further processing.

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

index ac60c4e..da54ff5 100644 (file)
@@ -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);