[CRIU] [PATCH] compel: wrap rt_sigframe with parentheses

Andrei Vagin avagin at virtuozzo.com
Thu Mar 23 16:17:52 PDT 2017


Applied
On Fri, Mar 17, 2017 at 02:15:48PM +0300, Stanislav Kinsburskiy wrote:
> It can be passed as link to real object.
> 
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
> ---
>  .../arch/x86/src/lib/include/uapi/asm/sigframe.h   |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h b/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
> index 21cd341..2b51c36 100644
> --- a/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
> +++ b/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
> @@ -150,7 +150,7 @@ struct rt_sigframe {
>   * - compatible is in sys32_rt_sigreturn at arch/x86/ia32/ia32_signal.c
>   * - native is in sys_rt_sigreturn at arch/x86/kernel/signal.c
>   */
> -#define RT_SIGFRAME_OFFSET(rt_sigframe)	((rt_sigframe->is_native) ? 8 : 4 )
> +#define RT_SIGFRAME_OFFSET(rt_sigframe)	(((rt_sigframe)->is_native) ? 8 : 4 )
>  
>  #define USER32_CS		0x23
>  
> 


More information about the CRIU mailing list