1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-04 21:47:46 +03:00

Fix incomplete munmap. (pjc)

This commit is contained in:
Alasdair Kergon 2003-03-20 14:29:28 +00:00
parent fca8e25929
commit e6aa7d323d

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;
}