fix refcounting of nsproxy object when unshared
authorCedric Le Goater <clg@fr.ibm.com>
Sun, 24 Jun 2007 00:16:25 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Jun 2007 15:59:10 +0000 (08:59 -0700)
commit4e71e474c784dc274f28ec8bb22a5dbabc6dc7c5
tree2a14a2d1efe99fe2a8e9c01ba851d6c28ddbef23
parent6d79af701d334777541136e914a9c0969b2ad307
fix refcounting of nsproxy object when unshared

When a namespace is unshared, a refcount on the previous nsproxy is
abusively taken, leading to a memory leak of nsproxy objects.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/nsproxy.c