diff options
author | Hans Schillstrom <hans.schillstrom@ericsson.com> | 2011-05-15 17:20:29 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-05-15 17:27:18 +0200 |
commit | 0f08190fe8af3cdb6ba19690eb0fa253ecef4bde (patch) | |
tree | e3dceb808591fd9cf49ddeccfedac771569c323a /net/netfilter/ipvs/ip_vs_app.c | |
parent | d8083deb4f1aa0977980dfb834fcc336ef38318f (diff) | |
download | op-kernel-dev-0f08190fe8af3cdb6ba19690eb0fa253ecef4bde.zip op-kernel-dev-0f08190fe8af3cdb6ba19690eb0fa253ecef4bde.tar.gz |
IPVS: fix netns if reading ip_vs_* procfs entries
Without this patch every access to ip_vs in procfs will increase
the netns count i.e. an unbalanced get_net()/put_net().
(ipvsadm commands also use procfs.)
The result is you can't exit a netns if reading ip_vs_* procfs entries.
Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_app.c')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_app.c b/net/netfilter/ipvs/ip_vs_app.c index 51f3af7..059af31 100644 --- a/net/netfilter/ipvs/ip_vs_app.c +++ b/net/netfilter/ipvs/ip_vs_app.c @@ -572,7 +572,7 @@ static const struct file_operations ip_vs_app_fops = { .open = ip_vs_app_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release, + .release = seq_release_net, }; #endif |