From: Chris Wright <chrisw@osdl.org>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: linux-kernel@vger.kernel.org, Kirill Korotaev <kirillx@7ka.mipt.ru>
Subject: [PATCH] fix another load_elf_binary error path
Date: Thu, 8 Apr 2004 16:57:59 -0700 [thread overview]
Message-ID: <20040408165759.W21045@build.pdx.osdl.net> (raw)
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);
reply other threads:[~2004-04-08 23:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040408165759.W21045@build.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=kirillx@7ka.mipt.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®