Skip to content

Commit

Permalink
[IPV6]: /proc/net/anycast6 unbalanced inet6_dev refcnt
Browse files Browse the repository at this point in the history
Reading /proc/net/anycast6 when there is no anycast address
on an interface results in an ever-increasing inet6_dev reference
count, as well as a reference to the netdevice you can't get rid of.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David Stevens authored and David S. Miller committed Feb 28, 2007
1 parent 1267cd7 commit aa6e4a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv6/anycast.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ static inline struct ifacaddr6 *ac6_get_first(struct seq_file *seq)
break;
}
read_unlock_bh(&idev->lock);
in6_dev_put(idev);
}
return im;
}
Expand Down

0 comments on commit aa6e4a9

Please sign in to comment.