mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix another load_elf_binary error path
@ 2004-04-08 23:57 Chris Wright
  0 siblings, 0 replies; only message in thread
From: Chris Wright @ 2004-04-08 23:57 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: linux-kernel, Kirill Korotaev

Protect against cases where interpreter is NULL.  Patch against 2.4.26-rc2.

Error noted by Kirill Korotaev <kirillx@7ka.mipt.ru>.

--- a/fs/binfmt_elf.c~unshare	2004-04-08 15:13:55.654720832 -0700
+++ b/fs/binfmt_elf.c	2004-04-08 15:23:52.788942632 -0700
@@ -821,7 +821,8 @@
 	/* error cleanup */
 out_free_dentry:
 	allow_write_access(interpreter);
-	fput(interpreter);
+	if (interpreter)
+		fput(interpreter);
 out_free_interp:
 	if (elf_interpreter)
 		kfree(elf_interpreter);

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

only message in thread, other threads:[~2004-04-08 23:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-08 23:57 [PATCH] fix another load_elf_binary error path Chris Wright

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

all inboxes | Powered by JetHome®