From 55c303acb873e478540042612f1028139454d4a4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 9 Nov 2002 23:10:46 +0000 Subject: 2002-11-09 Marcus Brinkmann * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one error in range calculation. --- sysdeps/mach/hurd/i386/ioperm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/mach/hurd/i386') diff --git a/sysdeps/mach/hurd/i386/ioperm.c b/sysdeps/mach/hurd/i386/ioperm.c index 39139bc565..be243d1ac9 100644 --- a/sysdeps/mach/hurd/i386/ioperm.c +++ b/sysdeps/mach/hurd/i386/ioperm.c @@ -36,7 +36,7 @@ ioperm (unsigned long int from, unsigned long int num, int turn_on) if (! err) { io_perm_t perm; - err = __i386_io_perm_create (devmaster, from, from + num, &perm); + err = __i386_io_perm_create (devmaster, from, from + num - 1, &perm); __mach_port_deallocate (__mach_task_self (), devmaster); if (! err) { -- cgit v1.2.3-70-g09d2