]> git.hungrycats.org Git - linux/commit
[PATCH] Fix memory leak in hugetlbfs
authorAndrew Morton <akpm@osdl.org>
Wed, 1 Oct 2003 17:57:08 +0000 (10:57 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 1 Oct 2003 17:57:08 +0000 (10:57 -0700)
commitb2a51555256640add55cee5c37cd56630eeefeac
tree6383a03bd953306665e901f044b0b11a2ea8920c
parent3c28ea4052fdedd263d0f4a63cc6c219153f2fa3
[PATCH] Fix memory leak in hugetlbfs

From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>

The hugetlbfs_fill_super() doesn't free up memory allocated for sbinfo on
the way out in case of parsing error (and a few others).  This leads to
memory leak If root tries to mount a hugetlbfs with invalid mount option.
Here is a patch that fix the problem.
fs/hugetlbfs/inode.c