diff options
author | Kees Cook <keescook@chromium.org> | 2011-12-09 01:30:42 +0100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-12-12 07:21:40 +0100 |
commit | bb80d880ad2b11cd4ea5f28f815016b1548224a4 (patch) | |
tree | 70ab38ab2d388f39efd9cd4f7f91859f0f3cf5e2 /security/tomoyo/common.h | |
parent | apparmor: add missing rcu_dereference() (diff) | |
download | linux-bb80d880ad2b11cd4ea5f28f815016b1548224a4.tar.xz linux-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/common.h')
-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 ed311d7a8ce0..cb9f5c2d6f3a 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; } |