Skip to contentSkip to conversation

EDAC: Use edac_debugfs_remove_recursive() in edac_debugfs_exit()

PATCH Applied [email protected] 2 participants 2 messages Feb 10, 2016 EDAC-core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EDAC: Use edac_debugfs_remove_recursive() in edac_debugfs_exit()

From: Thor Thayer <[email protected]>

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 another patch [1] that changed the EDAC MCI code to use edac_debugfs_remove_recursive().

[1] https://lkml.org/lkml/2015/10/13/974

---

---
 drivers/edac/debugfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/debugfs.c +1 -1
index 54d2f66..92dbb7e 100644
@@ -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)
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 11 lines · On Tue, Feb 09, 2016 at 06:29:25PM -0600, [email protected] wrote:

From: Thor Thayer <[email protected]>

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 another patch [1] that changed the EDAC MCI code to use edac_debugfs_remove_recursive().

[1] https://lkml.org/lkml/2015/10/13/974

Applied, thanks.

Signature · 4 lines
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.