EDAC: Use edac_debugfs_remove_recursive() in edac_debugfs_exit()
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
@@ -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
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. Howeveredac_debugfsmight not be empty. This is similar to another patch [1] that changed the EDAC MCI code to useedac_debugfs_remove_recursive().[1] https://lkml.org/lkml/2015/10/13/974
Suggested-by Borislav Petkov <[email protected]>Signed-off-by Thor Thayer <[email protected]>
Applied, thanks.
Signature · 4 lines
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.