Skip to content

Commit 3542ae4

Browse files
Alexey DobriyanLinus Torvalds
authored andcommitted
Tweak /proc/ipmi removal
Driver does proc_mkdir("ipmi", NULL); but remove_proc_entry(proc_ipmi_root->name, &proc_root); This is OK and working if only slightly inconsistent. Also changing proc_root to NULL will help OpenVZ which has multiple proc roots and, as we now know, requires matching parents in such cases. Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Cc: Corey Minyard <minyard@acm.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 84eb646 commit 3542ae4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/char/ipmi/ipmi_msghandler.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4136,7 +4136,7 @@ static __exit void cleanup_ipmi(void)
41364136
del_timer_sync(&ipmi_timer);
41374137

41384138
#ifdef CONFIG_PROC_FS
4139-
remove_proc_entry(proc_ipmi_root->name, &proc_root);
4139+
remove_proc_entry(proc_ipmi_root->name, NULL);
41404140
#endif /* CONFIG_PROC_FS */
41414141

41424142
driver_unregister(&ipmidriver);

0 commit comments

Comments
 (0)