]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/xsave.c
x86, xsave: use BUG_ON() instead of BUILD_BUG_ON()
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / xsave.c
index bb097b1644d832025a6bc453ad158fdd45d8daa0..07713d64debe2fffa7cb49e3bcd5bb129572f6a0 100644 (file)
@@ -82,8 +82,7 @@ int save_i387_xstate(void __user *buf)
        if (!access_ok(VERIFY_WRITE, buf, sig_xstate_size))
                return -EACCES;
 
-       BUILD_BUG_ON(sizeof(struct user_i387_struct) !=
-                       sizeof(tsk->thread.xstate->fxsave));
+       BUG_ON(sig_xstate_size < xstate_size);
 
        if ((unsigned long)buf % 64)
                printk("save_i387_xstate: bad fpstate %p\n", buf);