|
@@ -306,9 +306,9 @@ static int proc_pid_auxv(struct task_struct *task, char *buffer)
|
|
struct mm_struct *mm = get_task_mm(task);
|
|
struct mm_struct *mm = get_task_mm(task);
|
|
if (mm) {
|
|
if (mm) {
|
|
unsigned int nwords = 0;
|
|
unsigned int nwords = 0;
|
|
- do
|
|
|
|
|
|
+ do {
|
|
nwords += 2;
|
|
nwords += 2;
|
|
- while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */
|
|
|
|
|
|
+ } while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */
|
|
res = nwords * sizeof(mm->saved_auxv[0]);
|
|
res = nwords * sizeof(mm->saved_auxv[0]);
|
|
if (res > PAGE_SIZE)
|
|
if (res > PAGE_SIZE)
|
|
res = PAGE_SIZE;
|
|
res = PAGE_SIZE;
|