Parcourir la source

[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 <bartoldeman@users.sourceforge.net>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Bart Oldeman il y a 19 ans
Parent
commit
d5cd4aadd3
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      arch/i386/kernel/traps.c

+ 1 - 0
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;
 	}