[MIPS] VPE loader: Check result of memory allocation.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 13 Mar 2008 15:16:53 +0000 (15:16 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 1 Apr 2008 14:46:33 +0000 (15:46 +0100)
commit5408c490a4297556cfe10ba9725b1bd13f4a8377
tree2db6f1e490e832e3d7b918d5fe79d7260e612d30
parenta9edadbf790d72adf6ebed476cb5caf7743e7e4a
[MIPS] VPE loader: Check result of memory allocation.

And while at it, make it a little cleaner.  Issue originally reported by
Tiejun Chen (tiejun.chen@windriver.com).

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vpe.c