projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be8d0d7
)
netfilter: x_tables: fix net namespace leak when reading /proc/net/xxx_tables_names
author
Pavel Emelyanov
<xemul@openvz.org>
Tue, 29 Apr 2008 10:15:35 +0000
(
03:15
-0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 29 Apr 2008 10:15:35 +0000
(
03:15
-0700)
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
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/x_tables.c
b/net/netfilter/x_tables.c
index f52f7f810ac4f470521c8c4d95fadc8950ad1548..11b22abc2b70cb475c5a585120ba0dc68094c36c 100644
(file)
--- 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)