linux-mips
[Top] [All Lists]

[PATCH] linux-2.4: br2684: fix double freeing skb

To: Willy Tarreau <w@1wt.eu>
Subject: [PATCH] linux-2.4: br2684: fix double freeing skb
From: Frank Seidel <Frank.Seidel@sphairon.com>
Date: Tue, 30 Jun 2009 10:15:56 +0200
Cc: "Seidel, Frank" <Frank.Seidel@sphairon.com>, "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>, "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.21 (X11/20090318)
Author: Peter Sieber <siep@sphairon.com>

Fix double freeing skb, see net/core/dev.c
dev_queue_xmit().

Signed-off-by: Peter Sieber <siep@sphairon.com>
Signed-off-by: Frank Seidel <Frank.Seidel@sphairon.com>
---
 net/atm/br2684.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -221,7 +221,7 @@ static int br2684_start_xmit(struct sk_b
                /* netif_stop_queue(dev); */
                dev_kfree_skb(skb);
                read_unlock(&devs_lock);
-               return -EUNATCH;
+               return 0;
        }
        if (!br2684_xmit_vcc(skb, brdev, brvcc)) {
                /*

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] linux-2.4: br2684: fix double freeing skb, Frank Seidel <=