From: Peter Staubach Date: Mon, 7 Nov 2005 08:59:42 +0000 (-0800) Subject: [PATCH] memory leak in dentry_open() X-Git-Tag: v2.6.15-rc1~609 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fdcc2162285a8fc96ab12ff85086c37bceaa494;p=pandora-kernel.git [PATCH] memory leak in dentry_open() There is a memory leak possible in dentry_open(). If get_empty_filp() fails, then the references to dentry and mnt need to be released. The attached patch adds the calls to dput() and mntput() to release these two references. Signed-off-by: Peter Staubach Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed