fib: Fix fib zone and its hash leak on namespace stop
authorPavel Emelyanov <xemul@parallels.com>
Thu, 28 Oct 2010 02:00:43 +0000 (02:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2010 17:27:03 +0000 (10:27 -0700)
commit4aa2c466a7733af093a526e9d1cdd0b3b90d47e9
tree093d99b6c728867a8eb9548463d94661e3d0799e
parentb1424ed91076db0b19ba4141856150df9b717dde
fib: Fix fib zone and its hash leak on namespace stop

When we stop a namespace we flush the table and free one, but the
added fn_zone-s (and their hashes if grown) are leaked. Need to free.
Tries releases all its stuff in the flushing code.

Shame on us - this bug exists since the very first make-fib-per-net
patches in 2.6.27 :(

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/fib_hash.c
net/ipv4/fib_trie.c