Rafael J. Wysocki 3df663a147 ACPI: EC: Reference count query handlers under lock
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>
2019-12-27 11:04:21 +01:00
..
2019-11-25 19:40:40 -08:00
2019-06-23 09:23:33 +02:00
2019-11-29 10:33:03 +01:00
2019-11-26 10:31:02 +01:00
2019-11-13 11:12:08 +01:00
2019-11-29 10:31:12 +01:00