diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-01-11 12:25:15 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-01-11 12:25:43 +0100 |
commit | bf24996d891966454b3395ab965b87c033b21d7d (patch) | |
tree | 76fd5567a23fb0b3b3db6f1841a926fed4a6b867 /ext2fs/hyper.c | |
parent | d580a97c6c8a1e1419cc7c21f6dd9d1d12b79f92 (diff) | |
download | hurd-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.c | 2 |
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; |