diff options
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index fc471b8766d1..e94b58b496f1 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -281,9 +281,9 @@ out: | |||
281 | 281 | ||
282 | static int proc_pid_auxv(struct task_struct *task, char *buffer) | 282 | static int proc_pid_auxv(struct task_struct *task, char *buffer) |
283 | { | 283 | { |
284 | int res = 0; | 284 | struct mm_struct *mm = mm_for_maps(task); |
285 | struct mm_struct *mm = get_task_mm(task); | 285 | int res = PTR_ERR(mm); |
286 | if (mm) { | 286 | if (mm && !IS_ERR(mm)) { |
287 | unsigned int nwords = 0; | 287 | unsigned int nwords = 0; |
288 | do { | 288 | do { |
289 | nwords += 2; | 289 | nwords += 2; |