elf: fix one check-after-use
authorAmerigo Wang <amwang@redhat.com>
Wed, 1 Jul 2009 05:06:26 +0000 (01:06 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2009 18:14:28 +0000 (11:14 -0700)
commite2dbe12557d85d81f4527879499f55681c3cca4f
treeced6a9800ecd9ee06a5c84fbdbb313e8ee1f44d1
parent2027bd9f9290ede1664d5fa18b3fbd6c5f7401d3
elf: fix one check-after-use

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>
fs/binfmt_elf.c