]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kernel/fpu/signal.c
x86/fpu: Change fpu->fpregs_active users to fpu->fpstate_active
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / fpu / signal.c
index 684025654d0cc81ea0bbc133a311f5ed1b82a4dd..a88083ba7f8bd62106825ddf482b777998a1d6ba 100644 (file)
@@ -171,7 +171,9 @@ 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 (fpu->fpregs_active || using_compacted_format()) {
+       WARN_ON_FPU(fpu->fpstate_active != fpu->fpregs_active);
+
+       if (fpu->fpstate_active || using_compacted_format()) {
                /* Save the live register state to the user directly. */
                if (copy_fpregs_to_sigframe(buf_fx))
                        return -1;