From: Bart Oldeman Date: Sun, 30 Oct 2005 22:59:29 +0000 (-0800) Subject: [PATCH] x86: initialise tss->io_bitmap_owner to something X-Git-Tag: v2.6.15-rc1~59^2~15^2~172 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d5cd4aadd3d220afac8e3e6d922e333592551f7d;p=linux-2.6-omap-h63xx.git [PATCH] x86: initialise tss->io_bitmap_owner to something There exists a field io_bitmap_owner in the TSS that is only checked, but never set to anything else but NULL. Signed-off-by: Bart Oldeman Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c index 19e90bdd84e..c34d1bfc516 100644 --- a/arch/i386/kernel/traps.c +++ b/arch/i386/kernel/traps.c @@ -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; }