diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-12-27 11:04:21 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-01 11:11:51 +0200 |
| commit | 1e5fa8535c0a7cbd44bd73a439192e00502e96f3 (patch) | |
| tree | de6971904c4f15cb8a6eecb0444cd87d6f7dff94 /net/unix/af_unix.c | |
| parent | 98d1fac7d4a24bc54bcb188fae2f3fb9c01c73ca (diff) | |
ACPI: EC: Reference count query handlers under lock
[ Upstream commit 3df663a147fe077a6ee8444ec626738946e65547 ]
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
