diff options
Diffstat (limited to 'drivers/acpi/tables')
-rw-r--r-- | drivers/acpi/tables/tbxfroot.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/tables/tbxfroot.c b/drivers/acpi/tables/tbxfroot.c index dc3c3f6a9f62..198997aa7fbe 100644 --- a/drivers/acpi/tables/tbxfroot.c +++ b/drivers/acpi/tables/tbxfroot.c | |||
@@ -331,8 +331,10 @@ acpi_get_firmware_table ( | |||
331 | 331 | ||
332 | 332 | ||
333 | cleanup: | 333 | cleanup: |
334 | acpi_os_unmap_memory (rsdt_info->pointer, | 334 | if (rsdt_info->pointer) { |
335 | (acpi_size) rsdt_info->pointer->length); | 335 | acpi_os_unmap_memory (rsdt_info->pointer, |
336 | (acpi_size) rsdt_info->pointer->length); | ||
337 | } | ||
336 | ACPI_MEM_FREE (rsdt_info); | 338 | ACPI_MEM_FREE (rsdt_info); |
337 | 339 | ||
338 | if (header) { | 340 | if (header) { |