Skip to contentSkip to conversation

ath9k: Fix bug in handling rx frames with invalid descriptor content

PATCH New Vasanthakumar Thiagarajan 1 participant 2 messages May 11, 2010 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ath9k: Fix bug in handling rx frames with invalid descriptor content

Don't send them for further processing.

---
 drivers/net/wireless/ath/ath9k/recv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/recv.c +1 -0
index ac60c4e..da54ff5 100644
@@ -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);
 
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 ath9k: Remove unused rx_edma in ath_rx_addbuffer_edma()

---
 drivers/net/wireless/ath/ath9k/recv.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath9k/recv.c +0 -2
index da54ff5..ba13913 100644
@@ -150,11 +150,9 @@ static bool ath_rx_edma_buf_link(struct ath_softc *sc,
 static void ath_rx_addbuffer_edma(struct ath_softc *sc,
 				  enum ath9k_rx_qtype qtype, int size)
 {
-	struct ath_rx_edma *rx_edma;
 	struct ath_common *common = ath9k_hw_common(sc->sc_ah);
 	u32 nbuf = 0;
 
-	rx_edma = &sc->rx.rx_edma[qtype];
 	if (list_empty(&sc->rx.rxbuf)) {
 		ath_print(common, ATH_DBG_QUEUE, "No free rx buf available\n");
 		return;
Signature · 1 line
1.7.0.4