]> xenbits.xensource.com Git - xen.git/commitdiff
x86: fix XEN_DMOP_remote_shutdown return value
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 11 Oct 2017 15:49:48 +0000 (17:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Oct 2017 15:49:48 +0000 (17:49 +0200)
Return 0 to indicate success rather than whatever rc was previously set
to (-EINVAL).

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/dm.c

index 82addeae5fcd6399f42ac6a61cc525998d43e1ca..32ade9541da9edd7dead09ae6c2cf0a6369753ae 100644 (file)
@@ -636,6 +636,7 @@ static int dm_op(const struct dmop_args *op_args)
             &op.u.remote_shutdown;
 
         domain_shutdown(d, data->reason);
+        rc = 0;
         break;
     }