summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Pomazau <anatol@google.com>2012-02-07 16:12:44 -0800
committerAnatol Pomazau <anatol@google.com>2012-02-07 16:12:44 -0800
commit4211ee421a06c7edf031030710d15002c0de9d06 (patch)
treed81925c67830584b1ac4e654a9908fa4bd943ad6
parent937151266c272010ff24574668266dd2dcc69753 (diff)
downloadextras-4211ee421a06c7edf031030710d15002c0de9d06.tar.gz
munmap() should be called with the same length as mmap()
Change-Id: Ia4fc57d5111fac78f6647af279dd68808f3d6856
-rw-r--r--ext4_utils/output_file.c2
1 files changed, 1 insertions, 1 deletions
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);
}