Skip to content

Commit

Permalink
staging: r8712u: Do not queue cloned skb
Browse files Browse the repository at this point in the history
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>
Cc: Stable <stable@vger.kernel.org>  [v3.4+]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed Sep 26, 2012
1 parent 3cd73bc commit fa16e5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/staging/rtl8712/rtl8712_recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,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);
}
}

0 comments on commit fa16e5e

Please sign in to comment.