From: Joel Becker Date: Tue, 22 Feb 2011 09:09:49 +0000 (-0800) Subject: configfs: Don't try to d_delete() negative dentries. X-Git-Tag: v2.6.39~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df7f99670a4c76f269ae57ce91876b309417a316;p=pandora-kernel.git configfs: Don't try to d_delete() negative dentries. When configfs is faking mkdir() on its subsystem or default group objects, it starts by adding a negative dentry. It then tries to instantiate the group. If that should fail, it must clean up after itself. I was using d_delete() here, but configfs_attach_group() promises to return an empty dentry on error. d_delete() explodes with the entry dentry. Let's try d_drop() instead. The unhashing is what we want for our dentry. Signed-off-by: Joel Becker --- Reading git-diff-tree failed