aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index eb7b4654d6aa..a9ccc1252731 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -306,9 +306,9 @@ static int proc_pid_auxv(struct task_struct *task, char *buffer)
306 struct mm_struct *mm = get_task_mm(task); 306 struct mm_struct *mm = get_task_mm(task);
307 if (mm) { 307 if (mm) {
308 unsigned int nwords = 0; 308 unsigned int nwords = 0;
309 do 309 do {
310 nwords += 2; 310 nwords += 2;
311 while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */ 311 } while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */
312 res = nwords * sizeof(mm->saved_auxv[0]); 312 res = nwords * sizeof(mm->saved_auxv[0]);
313 if (res > PAGE_SIZE) 313 if (res > PAGE_SIZE)
314 res = PAGE_SIZE; 314 res = PAGE_SIZE;