Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb80d880 authored by Kees Cook's avatar Kees Cook Committed by James Morris
Browse files

tomoyo: add missing rcu_dereference()



Adds a missed rcu_dereference() around real_parent.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 2053c472
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}