Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47568d4c authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

FDPIC: For-loop in elf_core_vma_data_size() is incorrect



Fix an incorrect for-loop in elf_core_vma_data_size().  The advance-pointer
statement lacks an assignment:

	  CC      fs/binfmt_elf_fdpic.o
	fs/binfmt_elf_fdpic.c: In function 'elf_core_vma_data_size':
	fs/binfmt_elf_fdpic.c:1593: warning: statement with no effect

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6467a71c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1590,7 +1590,7 @@ static size_t elf_core_vma_data_size(unsigned long mm_flags)
	struct vm_area_struct *vma;
	struct vm_area_struct *vma;
	size_t size = 0;
	size_t size = 0;


	for (vma = current->mm->mmap; vma; vma->vm_next)
	for (vma = current->mm->mmap; vma; vma = vma->vm_next)
		if (maydump(vma, mm_flags))
		if (maydump(vma, mm_flags))
			size += vma->vm_end - vma->vm_start;
			size += vma->vm_end - vma->vm_start;
	return size;
	return size;