From 6b9d6c7544b5edf79365ef3cb5b37359538c31dd Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 26 Oct 2008 19:07:43 +0000 Subject: devmem: fixlet in cleanup code --- miscutils/devmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/devmem.c b/miscutils/devmem.c index 4903b5dcb..e13dedc0a 100644 --- a/miscutils/devmem.c +++ b/miscutils/devmem.c @@ -119,7 +119,7 @@ int devmem_main(int argc UNUSED_PARAM, char **argv) } 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"); close(fd); } -- cgit v1.2.3