On Wed, May 31, 2017 at 12:41:32PM +0200, gregory.herr...@oracle.com wrote:
> From: Gregory Herrero <gregory.herr...@oracle.com>
>  
> @@ -150,8 +155,11 @@ static void stopmachine_action(unsigned long cpu)
>          case STOPMACHINE_INVOKE:
>              if ( (stopmachine_data.fn_cpu == smp_processor_id()) ||
>                   (stopmachine_data.fn_cpu == NR_CPUS) )
> -                stopmachine_data.fn_result =
> -                    stopmachine_data.fn(stopmachine_data.fn_data);
> +         {
> +                int ret = stopmachine_data.fn(stopmachine_data.fn_data);
> +                if ( ret )
> +                    write_atomic(&stopmachine_data.fn_result, ret);
> +         }

Indentation is wrong.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to