Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300155
b: refs/heads/master
c: 8c75776
h: refs/heads/master
i:
  300153: 81a4450
  300151: 3bbbe68
v: v3
  • Loading branch information
Sha Zhengju authored and Linus Torvalds committed May 10, 2012
1 parent e20775e commit 7bbcce0
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 5e2bf0142231194d36fdc9596b36a261ed2b9fe7
refs/heads/master: 8c7577637ca31385e92769a77e2ab5b428e8b99c
6 changes: 6 additions & 0 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -4507,6 +4507,12 @@ static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp,
swap_buffers:
/* Swap primary and spare array */
thresholds->spare = thresholds->primary;
/* If all events are unregistered, free the spare array */
if (!new) {
kfree(thresholds->spare);
thresholds->spare = NULL;
}

rcu_assign_pointer(thresholds->primary, new);

/* To be sure that nobody uses thresholds */
Expand Down

0 comments on commit 7bbcce0

Please sign in to comment.