diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index ed311d7a8ce0547afab1e4570aa1b29898b9bdf0..cb9f5c2d6f3ab6c27d6a79f3f7c8786a5cb82ad7 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; }