Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292471
b: refs/heads/master
c: 1625739
h: refs/heads/master
i:
  292469: 61ea496
  292467: 70904fd
  292463: f22838b
v: v3
  • Loading branch information
Mahesh Salgaonkar authored and Benjamin Herrenschmidt committed Feb 22, 2012
1 parent 57d45b7 commit f1eaf2d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d34c5f26cf7de52a72ee064698817a5a39b91767
refs/heads/master: 162573937679ff36c9acd54268c047199dab564e
23 changes: 23 additions & 0 deletions trunk/fs/proc/vmcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,3 +700,26 @@ static int __init vmcore_init(void)
return 0;
}
module_init(vmcore_init)

/* Cleanup function for vmcore module. */
void vmcore_cleanup(void)
{
struct list_head *pos, *next;

if (proc_vmcore) {
remove_proc_entry(proc_vmcore->name, proc_vmcore->parent);
proc_vmcore = NULL;
}

/* clear the vmcore list. */
list_for_each_safe(pos, next, &vmcore_list) {
struct vmcore *m;

m = list_entry(pos, struct vmcore, list);
list_del(&m->list);
kfree(m);
}
kfree(elfcorebuf);
elfcorebuf = NULL;
}
EXPORT_SYMBOL_GPL(vmcore_cleanup);

0 comments on commit f1eaf2d

Please sign in to comment.