diff options
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 deeab7be5b97..9512222d5581 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 | } |