elf: fix one check-after-use
commit63510144577601e1747480a250c6c01aebeb704e
authorAmerigo Wang <amwang@redhat.com>
Wed, 1 Jul 2009 05:06:26 +0000 (1 01:06 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:40:14 +0000 (30 14:40 -0700)
treeafad8cb2dcf42320681641178595231ec91d58f8
parentb8fde9988b9d0934af55dd2269dafec15f5f6302
elf: fix one check-after-use

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