aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/hyper.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-01-11 12:25:15 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-01-11 12:25:43 +0100
commitbf24996d891966454b3395ab965b87c033b21d7d (patch)
tree76fd5567a23fb0b3b3db6f1841a926fed4a6b867 /ext2fs/hyper.c
parentd580a97c6c8a1e1419cc7c21f6dd9d1d12b79f92 (diff)
downloadhurd-bf24996d891966454b3395ab965b87c033b21d7d.tar.gz
hurd-bf24996d891966454b3395ab965b87c033b21d7d.tar.bz2
hurd-bf24996d891966454b3395ab965b87c033b21d7d.zip
libdiskfs: catch mmap failure
Just backtrace for now
Diffstat (limited to 'ext2fs/hyper.c')
-rw-r--r--ext2fs/hyper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c
index 82b06d17..d2440dc0 100644
--- a/ext2fs/hyper.c
+++ b/ext2fs/hyper.c
@@ -46,7 +46,7 @@ allocate_mod_map (void)
mod_map_size = le32toh (sblock->s_blocks_count) >> 3;
modified_global_blocks = mmap (0, mod_map_size, PROT_READ|PROT_WRITE,
MAP_ANON, 0, 0);
- assert_backtrace (modified_global_blocks != (void *) -1);
+ assert_backtrace (modified_global_blocks != MAP_FAILED);
}
else
modified_global_blocks = 0;