From: Al Viro Date: Wed, 4 Jan 2012 10:51:03 +0000 (+0000) Subject: minixfs: misplaced checks lead to dentry leak X-Git-Tag: v3.2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6042eac44b54dc5c7cb839175eb51dfd03d7633;p=pandora-kernel.git minixfs: misplaced checks lead to dentry leak bitmap size sanity checks should be done *before* allocating ->s_root; there their cleanup on failure would be correct. As it is, we do iput() on root inode, but leak the root dentry... Signed-off-by: Al Viro Acked-by: Josh Boyer Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed