Commit 1550c8ef authored by Ivo van Doorn's avatar Ivo van Doorn Committed by John W. Linville
Browse files

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: default avatarIvo van Doorn <IvDoorn@gmail.com>
Acked-by: default avatarHelmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3590eea4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.