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:
parent
fca8e25929
commit
e6aa7d323d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user