From: Pavel Emelyanov Date: Tue, 29 Apr 2008 10:15:35 +0000 (-0700) Subject: netfilter: x_tables: fix net namespace leak when reading /proc/net/xxx_tables_names X-Git-Tag: v2.6.26-rc1~104^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0e93bb9459f56b50a2f71f2c230f4ad00ec40a73;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index f52f7f810ac..11b22abc2b7 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -787,7 +787,7 @@ static const struct file_operations xt_table_ops = { .open = xt_table_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release, + .release = seq_release_net, }; static void *xt_match_seq_start(struct seq_file *seq, loff_t *pos)