Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338153
b: refs/heads/master
c: a3b41b7
h: refs/heads/master
i:
  338151: c713885
v: v3
  • Loading branch information
Luca Clementi authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent 788af5b commit 47309e4
Show file tree
Hide file tree
Showing 2 changed files with 22 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: fe5388c34c12ef55c9fa3bbb199c6857d69c08b3
refs/heads/master: a3b41b7a3183b1f6a133e2c29502eae515f915e0
21 changes: 21 additions & 0 deletions trunk/drivers/staging/android/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,4 +676,25 @@ static int __init logger_init(void)
out:
return ret;
}

static void __exit logger_exit(void)
{
struct logger_log *current_log, *next_log;

list_for_each_entry_safe(current_log, next_log, &log_list, logs) {
/* we have to delete all the entry inside log_list */
misc_deregister(&current_log->misc);
vfree(current_log->buffer);
kfree(current_log->misc.name);
list_del(&current_log->logs);
kfree(current_log);
}
}


device_initcall(logger_init);
module_exit(logger_exit);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Robert Love, <rlove@google.com>");
MODULE_DESCRIPTION("Android Logger");

0 comments on commit 47309e4

Please sign in to comment.