On 05/02/2016 03:17 PM, Yu-cheng Yu wrote:
> @@ -167,7 +168,7 @@ int copy_fpstate_to_sigframe(void __user *buf, void 
> __user *buf_fx, int size)
>                       sizeof(struct user_i387_ia32_struct), NULL,
>                       (struct _fpstate_32 __user *) buf) ? -1 : 1;
>  
> -     if (fpregs_active()) {
> +     if (fpregs_active() || using_compacted_format()) {
>               /* Save the live register state to the user directly. */
>               if (copy_fpregs_to_sigframe(buf_fx))
>                       return -1;

So, compared to the first patch, you move the fpregs_active() check out
to the caller of may_copy_fpregs_to_sigframe() (good) and removed a
bunch of comments explaining what was going on (bad).

Do we really want all those comments to die?

Reply via email to