Skip to content

Commit

Permalink
2002-11-09 Marcus Brinkmann <marcus@gnu.org>
Browse files Browse the repository at this point in the history
        * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
        error in range calculation.
  • Loading branch information
Roland McGrath committed Nov 9, 2002
1 parent 9372c95 commit 55c303a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2002-11-09 Marcus Brinkmann <marcus@gnu.org>

* sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
error in range calculation.

2002-10-09 Jakub Jelinek <jakub@redhat.com>

* string/test-strspn.c (do_test): Ensure zero termination.
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/mach/hurd/i386/ioperm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 55c303a

Please sign in to comment.