]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/mm/extable.c
x86/asm/32: Remove a bunch of '& 0xffff' from pt_regs segment reads
[linux.git] / arch / x86 / mm / extable.c
index 0ea8afcb929c031fdac01681ac277dcf74887e4e..fb2ddcdf7c73f3c834e3a6bbe878bc166960c7a2 100644 (file)
@@ -142,7 +142,7 @@ void __init early_fixup_exception(struct pt_regs *regs, int trapnr)
         * undefined.  I'm not sure which CPUs do this, but at least
         * the 486 DX works this way.
         */
-       if ((regs->cs & 0xFFFF) != __KERNEL_CS)
+       if (regs->cs != __KERNEL_CS)
                goto fail;
 
        /*