Gitweb: http://git.kernel.org/linus/e638c1394010859a015a3b533ee452d768e62cea Commit: e638c1394010859a015a3b533ee452d768e62cea Parent: c12ddba09394c60e1120e6997794fa6ed52da884 Author: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> AuthorDate: Tue Apr 21 12:24:41 2009 -0700 Committer: Linus Torvalds <torvalds@linux-foundation.org> CommitDate: Tue Apr 21 13:41:48 2009 -0700 memcg: use rcu_dereference to access mm->owner mm->owner should be accessed with rcu_dereference(). Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> --- include/linux/memcontrol.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 18146c9..a9e3b76 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -75,7 +75,7 @@ int mm_match_cgroup(const struct mm_struct *mm, const struct mem_cgroup *cgroup) { struct mem_cgroup *mem; rcu_read_lock(); - mem = mem_cgroup_from_task((mm)->owner); + mem = mem_cgroup_from_task(rcu_dereference((mm)->owner)); rcu_read_unlock(); return cgroup == mem; } -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
