Skip to content

Commit c810e8d

Browse files
committed
Merge tag 'acpi-6.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fixes from Rafael Wysocki: "These fix two coding mistakes, one in the ACPI resources handling code and one in ACPICA: - Relocate the addr->info.mem.caching check in acpi_decode_space() to only execute it if the resource is of the correct type (Ilpo Järvinen) - Don't release a context_mutex that was never acquired in acpi_remove_address_space_handler() (Daniil Tatianin)" * tag 'acpi-6.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPICA: events/evxfregn: don't release the ContextMutex that was never acquired ACPI: resource: Fix memory resource type union access
2 parents c30c65f + e14d5ae commit c810e8d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

drivers/acpi/acpica/evxfregn.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ acpi_remove_address_space_handler(acpi_handle device,
232232

233233
/* Now we can delete the handler object */
234234

235-
acpi_os_release_mutex(handler_obj->address_space.
236-
context_mutex);
237235
acpi_ut_remove_reference(handler_obj);
238236
goto unlock_and_exit;
239237
}

drivers/acpi/resource.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ static bool acpi_decode_space(struct resource_win *win,
250250
switch (addr->resource_type) {
251251
case ACPI_MEMORY_RANGE:
252252
acpi_dev_memresource_flags(res, len, wp);
253+
254+
if (addr->info.mem.caching == ACPI_PREFETCHABLE_MEMORY)
255+
res->flags |= IORESOURCE_PREFETCH;
253256
break;
254257
case ACPI_IO_RANGE:
255258
acpi_dev_ioresource_flags(res, len, iodec,
@@ -265,9 +268,6 @@ static bool acpi_decode_space(struct resource_win *win,
265268
if (addr->producer_consumer == ACPI_PRODUCER)
266269
res->flags |= IORESOURCE_WINDOW;
267270

268-
if (addr->info.mem.caching == ACPI_PREFETCHABLE_MEMORY)
269-
res->flags |= IORESOURCE_PREFETCH;
270-
271271
return !(res->flags & IORESOURCE_DISABLED);
272272
}
273273

0 commit comments

Comments
 (0)