Browse Source

Kjetil S. Matheussen: Fix a bug in HPET mmap() error check

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3522 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.117.0
sonarnerd 17 years ago
parent
commit
0326eb4afe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/os/gnu-linux/time.c

+ 1
- 1
config/os/gnu-linux/time.c View File

@@ -60,7 +60,7 @@ jack_hpet_init ()

hpet_ptr = (unsigned char *) mmap(NULL, HPET_MMAP_SIZE,
PROT_READ, MAP_SHARED, hpet_fd, 0);
if (hpet_ptr == NULL) {
if (hpet_ptr == MAP_FAILED) {
jack_error ("This system has no mappable HPET device (%s)", strerror (errno));
close (hpet_fd);
return -1;


Loading…
Cancel
Save