diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-03-27 00:49:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-27 00:49:40 +0100 |
commit | a233352506be35aafd49c0ba8c88ca96ebde1c3d (patch) | |
tree | 61bcc9f1f7a84ab926e0f2c8c32fe52e9124da3d /include/net/addrconf.h | |
parent | [TIPC]: Cosmetic cleanup of TIPC polling logic (diff) | |
download | linux-a233352506be35aafd49c0ba8c88ca96ebde1c3d.tar.xz linux-a233352506be35aafd49c0ba8c88ca96ebde1c3d.zip |
[IPV6]: Fix potential net leak and oops in ipv6 routing code.
The commits f3db4851 ([NETNS][IPV6] ip6_fib - fib6_clean_all handle several
network namespaces) and 69ddb805 ([NETNS][IPV6] route6 - Make proc entry
/proc/net/rt6_stats per namespace) made some proc files per net.
Both of them introduced potential OOPS - get_proc_net can return NULL, but
this check is lost - and a struct net leak - in case single_open() fails the
previously got net is not put.
Kill all these bugs with one patch.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/addrconf.h')
0 files changed, 0 insertions, 0 deletions