From: Tvrtko Ursulin Date: Thu, 15 Jul 2010 12:25:06 +0000 (+0100) Subject: securityfs: Drop dentry reference count when mknod fails X-Git-Tag: v2.6.36-rc1~584^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8bc83ab4dcbc9938b95a90bbb50d89d1904d5ab;p=pandora-kernel.git securityfs: Drop dentry reference count when mknod fails lookup_one_len increments dentry reference count which is not decremented when the create operation fails. This can cause a kernel BUG at fs/dcache.c:676 at unmount time. Also error code returned when new_inode() fails was replaced with more appropriate -ENOMEM. Signed-off-by: Tvrtko Ursulin Acked-by: Serge E. Hallyn Acked-by: Greg Kroah-Hartman Signed-off-by: James Morris --- Reading git-diff-tree failed