public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.28-rc1, more lost patches [3/10]
@ 2004-10-27  9:33 sezeroz
  0 siblings, 0 replies; only message in thread
From: sezeroz @ 2004-10-27  9:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: marcelo.tosatti

[-- Attachment #1: Type: text/plain, Size: 68 bytes --]


[3/10] binfmt_elf memleak, missing parts of Oleg's patch. in 2.6.


[-- Attachment #2: binfmt_elf-memleak.patch --]
[-- Type: application/octet-stream, Size: 945 bytes --]

Oleg Drokin, missing parts from the patch posted at
http://marc.theaimsgroup.com/?l=linux-kernel&m=105103934631609&w=2

already in 2.6

diff -urN 27p2/fs/binfmt_elf.c 27p2.pac/fs/binfmt_elf.c
--- 27p2/fs/binfmt_elf.c	2004-04-14 16:05:40.000000000 +0300
+++ 27p2.pac/fs/binfmt_elf.c	2004-05-09 23:58:10.000000000 +0300
@@ -375,7 +375,6 @@
 	unsigned long text_data, elf_entry = ~0UL;
 	char * addr;
 	loff_t offset;
-	int retval;
 
 	current->mm->end_code = interp_ex->a_text;
 	text_data = interp_ex->a_text + interp_ex->a_data;
@@ -397,11 +396,9 @@
 	}
 
 	do_brk(0, text_data);
-	retval = -ENOEXEC;
 	if (!interpreter->f_op || !interpreter->f_op->read)
 		goto out;
-	retval = interpreter->f_op->read(interpreter, addr, text_data, &offset);
-	if (retval < 0)
+	if (interpreter->f_op->read(interpreter, addr, text_data, &offset) < 0)
 		goto out;
 	flush_icache_range((unsigned long)addr,
 	                   (unsigned long)addr + text_data);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-27  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27  9:33 2.4.28-rc1, more lost patches [3/10] sezeroz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox