]> err.no Git - linux-2.6/commit
cgroup: fix possible memory leak
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 30 Jul 2008 05:33:18 +0000 (22:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Jul 2008 16:41:44 +0000 (09:41 -0700)
commit5a3eb9f6b7c598529f832b8baa6458ab1cbab2c6
tree16d1d481e86fb222e4e18c0681c1e5a4710675fb
parent1d1958f05095a7e9ecbba86235122784a3d1b561
cgroup: fix possible memory leak

There's a leak if copy_from_user() returns failure.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c