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:
parent
55d68d2ab3
commit
3a1703294b
@ -188,7 +188,7 @@ int read_config_fd(struct config_tree *cf, int fd, const char *file,
|
|||||||
dbg_free(p->fb);
|
dbg_free(p->fb);
|
||||||
else {
|
else {
|
||||||
/* unmap the file */
|
/* 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);
|
log_sys_error("munmap", file);
|
||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user