From 4211ee421a06c7edf031030710d15002c0de9d06 Mon Sep 17 00:00:00 2001 From: Anatol Pomazau Date: Tue, 7 Feb 2012 16:12:44 -0800 Subject: munmap() should be called with the same length as mmap() Change-Id: Ia4fc57d5111fac78f6647af279dd68808f3d6856 --- ext4_utils/output_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext4_utils/output_file.c b/ext4_utils/output_file.c index 1b0b9dc9..7b440208 100644 --- a/ext4_utils/output_file.c +++ b/ext4_utils/output_file.c @@ -549,6 +549,6 @@ void write_data_file(struct output_file *out, u64 off, const char *file, } err: - munmap(data, len); + munmap(data, len + aligned_diff); close(file_fd); } -- cgit v1.2.3