Files
twx-linux/drivers/acpi
Rafael J. Wysocki a43d6b3cbd ACPI: EC: Reference count query handlers under lock
[ Upstream commit 3df663a147 ]

There is a race condition in acpi_ec_get_query_handler()
theoretically allowing query handlers to go away before refernce
counting them.

In order to avoid it, call kref_get() on query handlers under
ec->mutex.

Also simplify the code a bit while at it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:12:31 +02:00
..
2020-04-02 16:34:20 +02:00
2019-05-14 19:18:42 +02:00
2019-12-17 20:39:36 +01:00
2020-06-30 15:38:07 -04:00