Message ID | 20170110094122.hpg4sluemkzomeiw@pd.tnic (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 57fb5f4..acb6118 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -378,7 +378,11 @@ static void acpi_os_drop_map_ref(struct acpi_ioremap *map) static void acpi_os_map_cleanup(struct acpi_ioremap *map) { if (!map->refcount) { - synchronize_rcu_expedited(); + if (acpi_os_initialized) { + pr_err("%s: acpi_os_initialized\n", __func__); + synchronize_rcu_expedited(); + } + acpi_unmap(map->phys, map->virt); kfree(map); }