patch-2.0.28 linux/fs/binfmt_elf.c

Next file: linux/fs/select.c
Previous file: linux/drivers/scsi/u14-34f.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.27/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -1234,9 +1234,9 @@
 		unsigned long addr = vma->vm_start;
 		unsigned long len = vma->vm_end - vma->vm_start;
 		
+		i++;
 		if (!maydump(vma))
 			continue;
-		i++;
 #ifdef DEBUG
 		printk("elf_core_dump: writing %08lx %lx\n", addr, len);
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov