summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Pomazau <anatol@google.com>2012-02-08 09:23:58 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-08 09:23:58 -0800
commit81e8fe9fc6ce8902d176bec9e4e9f13b9872885f (patch)
treef1b68fa32c0c41c65e847e6d7db47af3462f3310
parentdba7d246a20d14663c2e90b2fa9051894e3c7e1b (diff)
parent4211ee421a06c7edf031030710d15002c0de9d06 (diff)
downloadextras-81e8fe9fc6ce8902d176bec9e4e9f13b9872885f.tar.gz
Merge "munmap() should be called with the same length as mmap()"
-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);
}