aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook2011-12-08 18:30:42 -0600
committerJames Morris2011-12-12 00:21:40 -0600
commitbb80d880ad2b11cd4ea5f28f815016b1548224a4 (patch)
tree70ab38ab2d388f39efd9cd4f7f91859f0f3cf5e2 /security/tomoyo
parent2053c4727c5a891bf182397e425b6cb87b2ae613 (diff)
downloadkernel-common-bb80d880ad2b11cd4ea5f28f815016b1548224a4.tar.gz
kernel-common-bb80d880ad2b11cd4ea5f28f815016b1548224a4.tar.xz
kernel-common-bb80d880ad2b11cd4ea5f28f815016b1548224a4.zip
tomoyo: add missing rcu_dereference()
Adds a missed rcu_dereference() around real_parent. Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo')
-rw-r--r--security/tomoyo/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h
index ed311d7a8ce..cb9f5c2d6f3 100644
--- a/security/tomoyo/common.h
+++ b/security/tomoyo/common.h
@@ -1122,7 +1122,7 @@ static inline pid_t tomoyo_sys_getppid(void)
1122{ 1122{
1123 pid_t pid; 1123 pid_t pid;
1124 rcu_read_lock(); 1124 rcu_read_lock();
1125 pid = task_tgid_vnr(current->real_parent); 1125 pid = task_tgid_vnr(rcu_dereference(current->real_parent));
1126 rcu_read_unlock(); 1126 rcu_read_unlock();
1127 return pid; 1127 return pid;
1128} 1128}