summaryrefslogtreecommitdiff
path: root/drivers/edac/debugfs.c
diff options
context:
space:
mode:
authorThor Thayer <tthayer@opensource.altera.com>2016-02-09 18:29:25 -0600
committerBorislav Petkov <bp@suse.de>2016-02-10 10:37:46 +0100
commit9bf4f005672073f6bae2edf84e6cb5c4fb16ffc6 (patch)
tree2a5a67943e1a7194109161f7ffad52bfb30f5d2c /drivers/edac/debugfs.c
parentf2b59ac66f980e7636c15e2ebbd09f0ef46881ab (diff)
EDAC: Use edac_debugfs_remove_recursive() in edac_debugfs_exit()
debugfs_remove() is used to remove a file or a directory from the debugfs filesystem on an EDAC device exit. However edac_debugfs might not be empty. This is similar to 30f84a891bf6 ("EDAC: Use edac_debugfs_remove_recursive()") which changed the EDAC MCI code to use edac_debugfs_remove_recursive(). Suggested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Thor Thayer <tthayer@opensource.altera.com> Cc: linux-edac <linux-edac@vger.kernel.org> Link: http://lkml.kernel.org/r/1455064165-3816-1-git-send-email-tthayer@opensource.altera.com Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/debugfs.c')
-rw-r--r--drivers/edac/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/debugfs.c b/drivers/edac/debugfs.c
index 54d2f668cb0a..92dbb7e2320c 100644
--- a/drivers/edac/debugfs.c
+++ b/drivers/edac/debugfs.c
@@ -53,7 +53,7 @@ int __init edac_debugfs_init(void)
void edac_debugfs_exit(void)
{
- debugfs_remove(edac_debugfs);
+ debugfs_remove_recursive(edac_debugfs);
}
int edac_create_debugfs_nodes(struct mem_ctl_info *mci)