Skip to content

Commit

Permalink
rt2x00: Fix dead queue when skb allocation failed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ivo van Doorn authored and John W. Linville committed Oct 11, 2010
1 parent 3590eea commit 1550c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rt2x00/rt2x00dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1550c8e

Please sign in to comment.