mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
devmem: fixlet in cleanup code
This commit is contained in:
parent
043246560f
commit
6b9d6c7544
@ -119,7 +119,7 @@ int devmem_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ENABLE_FEATURE_CLEAN_UP) {
|
if (ENABLE_FEATURE_CLEAN_UP) {
|
||||||
if (munmap(map_base, page_size) == -1)
|
if (munmap(map_base, page_size * 2) == -1)
|
||||||
bb_perror_msg_and_die("munmap");
|
bb_perror_msg_and_die("munmap");
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user