netfilter: x_tables: fix net namespace leak when reading /proc/net/xxx_tables_names
authorPavel Emelyanov <xemul@openvz.org>
Tue, 29 Apr 2008 10:15:35 +0000 (03:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Apr 2008 10:15:35 +0000 (03:15 -0700)
commit0e93bb9459f56b50a2f71f2c230f4ad00ec40a73
treea5468e0a4cbf606a49b0c84c39119b682f1ef416
parentbe8d0d7903af85d396449b34366e7f5b0c9cc58b
netfilter: x_tables: fix net namespace leak when reading /proc/net/xxx_tables_names

The seq_open_net() call should be accompanied with seq_release_net() one.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/x_tables.c