Jelajahi Sumber

rt2x00: Fix dead queue when skb allocation failed

When the RX skb allocation failed, we should recycle
the previously allocated skbuffer. By calling return
we would kill the RX queue completely since the
entry would be invalidated.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Ivo van Doorn 14 tahun lalu
induk
melakukan
1550c8ef83
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      drivers/net/wireless/rt2x00/rt2x00dev.c

+ 1 - 1
drivers/net/wireless/rt2x00/rt2x00dev.c

@@ -491,7 +491,7 @@ void rt2x00lib_rxdone(struct queue_entry *entry)
 	 */
 	skb = rt2x00queue_alloc_rxskb(entry);
 	if (!skb)
-		return;
+		goto submit_entry;
 
 	/*
 	 * Unmap the skb.