aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/proc/base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index fc471b8766d..e94b58b496f 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -281,9 +281,9 @@ out:
281 281
282static int proc_pid_auxv(struct task_struct *task, char *buffer) 282static 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;