projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8fde99
)
elf: fix one check-after-use
author
Amerigo Wang
<amwang@redhat.com>
Wed, 1 Jul 2009 05:06:26 +0000
(
01:06
-0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 30 Jul 2009 21:40:14 +0000
(14:40 -0700)
commit
e2dbe12557d85d81f4527879499f55681c3cca4f
upstream.
Check before use it.
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/binfmt_elf.c
patch
|
blob
|
history
diff --git
a/fs/binfmt_elf.c
b/fs/binfmt_elf.c
index 40381df348697263027536cd182e4b1294052bd7..605b17a7c575858dc74ba936e16510a83fccca1e 100644
(file)
--- a/
fs/binfmt_elf.c
+++ b/
fs/binfmt_elf.c
@@
-1518,11
+1518,11
@@
static int fill_note_info(struct elfhdr *elf, int phdrs,
info->thread = NULL;
psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL);
- fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo);
-
if (psinfo == NULL)
return 0;
+ fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo);
+
/*
* Figure out how many notes we're going to need for each thread.
*/