diff options
Diffstat (limited to 'fs/proc/task_nommu.c')
-rw-r--r-- | fs/proc/task_nommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c index 678455d2d68..f9db7e9f696 100644 --- a/fs/proc/task_nommu.c +++ b/fs/proc/task_nommu.c | |||
@@ -216,7 +216,7 @@ static void *m_start(struct seq_file *m, loff_t *pos) | |||
216 | if (!priv->task) | 216 | if (!priv->task) |
217 | return ERR_PTR(-ESRCH); | 217 | return ERR_PTR(-ESRCH); |
218 | 218 | ||
219 | mm = mm_access(priv->task, PTRACE_MODE_READ); | 219 | mm = mm_access(priv->task, PTRACE_MODE_READ_FSCREDS); |
220 | if (!mm || IS_ERR(mm)) { | 220 | if (!mm || IS_ERR(mm)) { |
221 | put_task_struct(priv->task); | 221 | put_task_struct(priv->task); |
222 | priv->task = NULL; | 222 | priv->task = NULL; |