From: Mathieu Desnoyers Date: Fri, 24 Nov 2006 18:50:09 +0000 (-0500) Subject: DebugFS : more file/directory creation error handling X-Git-Tag: v2.6.20-rc1~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65c333367b1aea57d58168ad3dc1df27b0227401;p=pandora-kernel.git DebugFS : more file/directory creation error handling Correct dentry count to handle creation errors. This patch puts a dput at the file creation instead of the file removal : lookup_one_len already returns a dentry with reference count of 1. Then, the dget() in simple_mknod increments it when the dentry is associated with a file. In a scenario where simple_create or simple_mkdir returns an error, this would lead to an unwanted increment of the reference counter, therefore making file removal impossible. Signed-off-by: Mathieu Desnoyers Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed