...otherwise if kimage_alloc_control_page fails (presumably due to
out-of-memory; see the invocation just before this one), the caller of
do_kimage_alloc will think the call was successful.
Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
goto out;
/* Add an empty indirection page. */
+ result = -ENOMEM;
image->entry_page = kimage_alloc_control_page(image, 0);
if ( !image->entry_page )
goto out;