]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPICA: events/evxfregn: don't release the ContextMutex that was never acquired
authorDaniil Tatianin <d-tatianin@yandex-team.ru>
Fri, 22 Nov 2024 08:29:54 +0000 (11:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:06:12 +0000 (18:06 +0100)
commit32a849c676eafd7cffd596a91c3298777255e902
treed03d8973d22eb43590b7857ebf37601d2df2548f
parent45af429f76e7e346b7736e0bb5a4628c9e619d1a
ACPICA: events/evxfregn: don't release the ContextMutex that was never acquired

[ Upstream commit c53d96a4481f42a1635b96d2c1acbb0a126bfd54 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/acpica/evxfregn.c