Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPICA: events/evxfregn: don't release the ContextMutex that was never acquired

This bug was first introduced in c27f3d011b08, where the author of the
patch probably meant to do DeleteMutex instead of ReleaseMutex. The
mutex leak was noticed later on and fixed in e4dfe108371, but the bogus
MutexRelease line was never removed, so do it now.

Link: https://github.com/acpica/acpica/pull/982
Fixes: c27f3d011b08 ("ACPICA: Fix race in generic_serial_bus (I2C) and GPIO op_region parameter handling")
Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Link: https://patch.msgid.link/20241122082954.658356-1-d-tatianin@yandex-team.ru
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Daniil Tatianin and committed by
Rafael J. Wysocki
c53d96a4 fac04efc

-2
-2
drivers/acpi/acpica/evxfregn.c
··· 232 232 233 233 /* Now we can delete the handler object */ 234 234 235 - acpi_os_release_mutex(handler_obj->address_space. 236 - context_mutex); 237 235 acpi_ut_remove_reference(handler_obj); 238 236 goto unlock_and_exit; 239 237 }