diff options
author | Kees Cook <keescook@chromium.org> | 2011-12-08 16:30:42 -0800 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-12-12 17:21:40 +1100 |
commit | bb80d880ad2b11cd4ea5f28f815016b1548224a4 (patch) | |
tree | 70ab38ab2d388f39efd9cd4f7f91859f0f3cf5e2 /security/tomoyo | |
parent | 2053c4727c5a891bf182397e425b6cb87b2ae613 (diff) |
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.h | 2 |
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) { pid_t pid; rcu_read_lock(); - pid = task_tgid_vnr(current->real_parent); + pid = task_tgid_vnr(rcu_dereference(current->real_parent)); rcu_read_unlock(); return pid; } |