diff options
author | Andrea Monaco <andrea.monaco@autistici.org> | 2021-11-21 20:18:17 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-11-21 20:22:09 +0100 |
commit | b250fa1cb98d2e2b44a8dd7c2275c6c9e04519e1 (patch) | |
tree | 4e729c5af6167434ee5dedf53cc97366a5041913 /acpi | |
parent | 3692e4afc25973dd3b887f1a9376874342ae5267 (diff) | |
download | hurd-b250fa1cb98d2e2b44a8dd7c2275c6c9e04519e1.tar.gz hurd-b250fa1cb98d2e2b44a8dd7c2275c6c9e04519e1.tar.bz2 hurd-b250fa1cb98d2e2b44a8dd7c2275c6c9e04519e1.zip |
acpi: Fix spurious munmap call
* acpi/acpi.c (acpi_get_num_tables, acpi_get_tables): Munmap is not needed,
because when mmap_phys_acpi_header returns non-zero, no mmap is performed.
Diffstat (limited to 'acpi')
-rw-r--r-- | acpi/acpi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/acpi/acpi.c b/acpi/acpi.c index acbf79c7..a6ad1609 100644 --- a/acpi/acpi.c +++ b/acpi/acpi.c @@ -114,7 +114,6 @@ acpi_get_num_tables(size_t *num_tables) err = mmap_phys_acpi_header(sdt_base, &root_sdt, &virt_addr, fd_mem); if (err) { - munmap(virt_addr, ESCD_SIZE); return err; } @@ -223,7 +222,6 @@ acpi_get_tables(struct acpi_table **tables) err = mmap_phys_acpi_header(sdt_base, &root_sdt, &virt_addr, fd_mem); if (err) { - munmap(virt_addr, ESCD_SIZE); return err; } |