Permalink
Browse files

Fix kernel BUG on binder_release, due to incorrect remove order of de…

…bugfs files.
  • Loading branch information...
1 parent 41e3402 commit ebb5a8e6d4c38b59152a0aa6ee7ef1226cb72849 @tom3q committed May 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 module/new/binder.c
View
@@ -749,9 +749,6 @@ static void proc_queue_release(struct msg_queue *q, void *data)
struct rb_node *n;
struct binder_obj *obj;
- if (proc->proc_dir)
- debugfs_remove_recursive(proc->proc_dir);
-
clear_msg_queue(proc, q);
// safe to free objs and send BR_DEAD_BINDER
@@ -764,6 +761,9 @@ static void proc_queue_release(struct msg_queue *q, void *data)
_binder_free_obj(proc, obj);
}
+ if (proc->proc_dir)
+ debugfs_remove_recursive(proc->proc_dir);
+
if (proc->slob)
fast_slob_destroy(proc->slob);

0 comments on commit ebb5a8e

Please sign in to comment.