]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] reset tss->io_bitmap_owner in sys_ioperm()
authorBart Oldeman <bartoldeman@users.sourceforge.net>
Sat, 5 Nov 2005 23:54:07 +0000 (12:54 +1300)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 6 Nov 2005 00:31:36 +0000 (16:31 -0800)
commitf912696ab330bf539231d1f8032320f2a08b850f
treed3e4cf70323348b341b894af57a69896c755cac1
parent88dcb6c4113afe93a6c4891ec43bef6a17c83155
[PATCH] reset tss->io_bitmap_owner in sys_ioperm()

my patch "x86: initialise tss->io_bitmap_owner to something" (commit ID
d5cd4aadd3d220afac8e3e6d922e333592551f7d) introduced a problem with a
program (DOSEMU) that called ioperm after already doing some port i/o.

The problem is that a process switch return causes tss->io_bitmap_base
to be set to IO_BITMAP_OFFSET so that the fault (that *really* sets the
io bitmap) never triggers.

This fixes that regression.

Signed-off-by: Bart Oldeman <bartoldeman@users.sourceforge.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/ioport.c