From: Jan Kara Date: Mon, 7 Feb 2011 14:00:27 +0000 (+0100) Subject: debugfs: Fix filesystem reference counting on debugfs_remove() failure X-Git-Tag: v2.6.39-rc1~471^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25d41d8455ec1ee7433e146ee94436dc4195f420;p=pandora-kernel.git debugfs: Fix filesystem reference counting on debugfs_remove() failure When __debugfs_remove() fails (because simple_rmdir() fails e.g. when a directory is not empty), we must not decrement use count of the filesystem as nothing was in fact deleted. This fixes use after free caused by debugfs in some cases. Signed-off-by: Jan Kara Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed