This is a note to let you know that I've just added the patch titled

    staging: r8712u: Do not queue cloned skb

to my staging git tree which can be found at
    git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-next branch.

The patch will show up in the next release of the linux-next tree
(usually sometime within the next 24 hours during the week.)

The patch will also be merged in the next major kernel release
during the merge window.

If you have any questions about this process, please let me know.


>From fa16e5ea25d7dd83f663f333e70713aa2fa5dffe Mon Sep 17 00:00:00 2001
From: Larry Finger <[email protected]>
Date: Wed, 26 Sep 2012 14:01:31 -0500
Subject: staging: r8712u: Do not queue cloned skb

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 <[email protected]>
Cc: Stable <[email protected]>  [v3.4+]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/rtl8712/rtl8712_recv.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8712/rtl8712_recv.c 
b/drivers/staging/rtl8712/rtl8712_recv.c
index 4cd297a..c76732c 100644
--- a/drivers/staging/rtl8712/rtl8712_recv.c
+++ b/drivers/staging/rtl8712/rtl8712_recv.c
@@ -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);
        }
 }
-- 
1.7.10.1.362.g242cab3


--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to