1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix incomplete munmap. (pjc)

This commit is contained in:
Alasdair Kergon 2003-03-20 14:29:28 +00:00
parent 55d68d2ab3
commit 3a1703294b

View File

@ -188,7 +188,7 @@ int read_config_fd(struct config_tree *cf, int fd, const char *file,
dbg_free(p->fb);
else {
/* unmap the file */
if (munmap((char *) (p->fb - mmap_offset), size)) {
if (munmap((char *) (p->fb - mmap_offset), size + mmap_offset)) {
log_sys_error("munmap", file);
r = 0;
}