mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
staging: r8712u: Do not queue cloned skb
commit fa16e5ea25 upstream.
Some post-3.4 kernels have a problem when a cloned skb is used in the
RX path. This patch handles one such case for r8712u.
The patch was suggested by Eric Dumazet.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0f2c427a4f
commit
28675586f3
|
|
@ -1126,6 +1126,9 @@ static void recv_tasklet(void *priv)
|
|||
recvbuf2recvframe(padapter, pskb);
|
||||
skb_reset_tail_pointer(pskb);
|
||||
pskb->len = 0;
|
||||
skb_queue_tail(&precvpriv->free_recv_skb_queue, pskb);
|
||||
if (!skb_cloned(pskb))
|
||||
skb_queue_tail(&precvpriv->free_recv_skb_queue, pskb);
|
||||
else
|
||||
consume_skb(pskb);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user