[PATCH] x86_64: Unmap NULL during early bootup
[firefly-linux-kernel-4.4.55.git] / arch / i386 / kernel / traps.c
index 19e90bdd84eac1834efe26127429b0cec15f1670..c34d1bfc51619b0ee978740d34ffad9d6dd499bb 100644 (file)
@@ -488,6 +488,7 @@ fastcall void __kprobes do_general_protection(struct pt_regs * regs,
                                tss->io_bitmap_max - thread->io_bitmap_max);
                tss->io_bitmap_max = thread->io_bitmap_max;
                tss->io_bitmap_base = IO_BITMAP_OFFSET;
+               tss->io_bitmap_owner = thread;
                put_cpu();
                return;
        }