mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 08:46:18 +07:00
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>
This commit is contained in:
parent
3590eea418
commit
1550c8ef83
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user