Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156030
b: refs/heads/master
c: f5886c7
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas authored and Linus Torvalds committed Jul 29, 2009
1 parent 7762547 commit 5a6ec8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84210aeb4a6a77de8a3067b121026bad630cd3da
refs/heads/master: f5886c7f96f2542382d3a983c5f13e03d7fc5259
4 changes: 1 addition & 3 deletions trunk/mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,6 @@ static void *kmemleak_seq_start(struct seq_file *seq, loff_t *pos)
}
object = NULL;
out:
rcu_read_unlock();
return object;
}

Expand All @@ -1233,13 +1232,11 @@ static void *kmemleak_seq_next(struct seq_file *seq, void *v, loff_t *pos)

++(*pos);

rcu_read_lock();
list_for_each_continue_rcu(n, &object_list) {
next_obj = list_entry(n, struct kmemleak_object, object_list);
if (get_object(next_obj))
break;
}
rcu_read_unlock();

put_object(prev_obj);
return next_obj;
Expand All @@ -1255,6 +1252,7 @@ static void kmemleak_seq_stop(struct seq_file *seq, void *v)
* kmemleak_seq_start may return ERR_PTR if the scan_mutex
* waiting was interrupted, so only release it if !IS_ERR.
*/
rcu_read_unlock();
mutex_unlock(&scan_mutex);
if (v)
put_object(v);
Expand Down

0 comments on commit 5a6ec8b

Please sign in to comment.