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 74fe164d1b23..1ccfa537f5f5 100644 --- a/fs/proc/task_nommu.c +++ b/fs/proc/task_nommu.c | |||
@@ -223,7 +223,7 @@ static void *m_start(struct seq_file *m, loff_t *pos) | |||
223 | if (!priv->task) | 223 | if (!priv->task) |
224 | return ERR_PTR(-ESRCH); | 224 | return ERR_PTR(-ESRCH); |
225 | 225 | ||
226 | mm = mm_for_maps(priv->task); | 226 | mm = mm_access(priv->task, PTRACE_MODE_READ); |
227 | if (!mm || IS_ERR(mm)) { | 227 | if (!mm || IS_ERR(mm)) { |
228 | put_task_struct(priv->task); | 228 | put_task_struct(priv->task); |
229 | priv->task = NULL; | 229 | priv->task = NULL; |