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

    ipv6-multicast: Fix memory leak in IPv6 multicast.

to the 3.0-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     ipv6-multicast-fix-memory-leak-in-ipv6-multicast.patch
and it can be found in the queue-3.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 96be35d1f8e04252c85db66eb87d48c91ebb1ba3 Mon Sep 17 00:00:00 2001
From: Ben Greear <[email protected]>
Date: Fri, 23 Sep 2011 13:11:01 +0000
Subject: ipv6-multicast: Fix memory leak in IPv6 multicast.


From: Ben Greear <[email protected]>

[ Upstream commit 67928c4041606f02725f3c95c4c0404e4532df1b ]

If reg_vif_xmit cannot find a routing entry, be sure to
free the skb before returning the error.

Signed-off-by: Ben Greear <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 net/ipv6/ip6mr.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -696,8 +696,10 @@ static netdev_tx_t reg_vif_xmit(struct s
        int err;
 
        err = ip6mr_fib_lookup(net, &fl6, &mrt);
-       if (err < 0)
+       if (err < 0) {
+               kfree_skb(skb);
                return err;
+       }
 
        read_lock(&mrt_lock);
        dev->stats.tx_bytes += skb->len;


Patches currently in stable-queue which might be from [email protected] 
are

queue-3.0/ipv6-multicast-fix-memory-leak-in-ipv6-multicast.patch
queue-3.0/ipv6-multicast-fix-memory-leak-in-input-path.patch
--
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