Files
twx-linux/drivers/acpi
Rafael J. Wysocki 4913d773d1 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:14:30 +02:00
..
2020-03-25 08:06:13 +01:00
…
…
2019-05-14 19:17:53 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-12-17 20:35:05 +01:00
…
…
…
…
…
…
…
2020-06-30 23:17:15 -04:00
…
…
…
…