xen: Fix XEN_DMOP_remote_shutdown return value
PATCH 1/1 xen: Fix XEN_DMOP_remote_shutdown return value
Return 0 to indicate success rather than whatever rc was previously set to (-EINVAL).
--- xen/arch/x86/hvm/dm.c | 1 + 1 file changed, 1 insertion(+)
xen/arch/x86/hvm/dm.c +1 -0
@@ -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 ; }
Signature · 7 lines
2.9.5 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 13 lines · Ross Lagerwall
Return 0 to indicate success rather than whatever rc was previously set to (
-EINVAL).Signed-off-by Ross Lagerwall <[email protected]>--- xen/arch/x86/hvm/dm.c | 1 + 1 file changed, 1 insertion(+)xen/arch/x86/hvm/dm.c +0
-0
xen/arch/x86/hvm/dm.c static int dm_op(const struct dmop_args *op_args) · line 639
Quoted 4 lines
xen/arch/x86/hvm/dm.c +1
-0@@ -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 ;
Ideally with a newline here (can be fixed on commit).
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 11.10.17 at 17:41, <[email protected]> wrote:
Return 0 to indicate success rather than whatever rc was previously set to (
-EINVAL).Signed-off-by Ross Lagerwall <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 4 lines · Ross Lagerwall
Return 0 to indicate success rather than whatever rc was previously set to (
-EINVAL).Signed-off-by Ross Lagerwall <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Andrew Cooper writes ("Re: [PATCH for-4.10] xen: Fix XEN_DMOP_remote_shutdown return value"):
Quoted 16 lines · Ross Lagerwall
Quoted 15 lines
Return 0 to indicate success rather than whatever rc was previously set to (
-EINVAL).Signed-off-by Ross Lagerwall <[email protected]>--- xen/arch/x86/hvm/dm.c | 1 + 1 file changed, 1 insertion(+)xen/arch/x86/hvm/dm.c +0
-0@@ -636,6 +636,7 @@ static int dm_op(const struct dmop_args *op_args) &op.u.remote_shutdown;
Quoted 4 lines
xen/arch/x86/hvm/dm.c static int dm_op(const struct dmop_args *op_args) · line 639
Quoted 2 lines
xen/arch/x86/hvm/dm.c +1
-0domain_shutdown (d, data->reason); + rc =0 ;Ideally with a newline here (can be fixed on commit).
Thanks to Ross for spotting this, and to whoever committed it so speedily.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel