ipv6-multicast: Fix memory leak in IPv6 multicast.
Subsystems (3)
PATCH 1/1 ipv6-multicast: Fix memory leak in IPv6 multicast.
From: Ben Greear <[email protected]>
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]>
---
:100644 100644 82a8099... e9a8df9... M net/ipv6/ip6mr.c
net/ipv6/ip6mr.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
net/ipv6/ip6mr.c +3 -1
@@ -696,8 +696,10 @@ static netdev_tx_t reg_vif_xmit(struct sk_buff *skb,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;
Signature · 1 line
1.7.3.4
From: [email protected]
Date: Fri, 23 Sep 2011 16:11:01 -0700
Quoted 6 lines
From: Ben Greear <[email protected]>
If
reg_vif_xmitcannot find a routing entry, be sure to free the skb before returning the error.Signed-off-by Ben Greear <[email protected]>
Applied.
Quoted 11 lines · David Miller
From: [email protected]
Date: Fri, 23 Sep 2011 16:11:01 -0700Quoted 6 lines
From: Ben Greear<[email protected]>
If
reg_vif_xmitcannot find a routing entry, be sure to free the skb before returning the error.Signed-off-by Ben Greear<[email protected]>Applied.
This one has not made it to 3.0 stable either.
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com