summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/thinkpad_acpi.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-01-30 14:25:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-09 11:28:07 +0100
commit21745fbfe7600881ddcefe270d4659f56ac54133 (patch)
tree7e6775114e11c0609958a490600f5b2d2df9c997 /drivers/platform/x86/thinkpad_acpi.c
parent7f7f441347b49b3df569f1fd942f2d43aa4aa2b9 (diff)
downloadlinux-stable-21745fbfe7600881ddcefe270d4659f56ac54133.tar.gz
linux-stable-21745fbfe7600881ddcefe270d4659f56ac54133.tar.bz2
linux-stable-21745fbfe7600881ddcefe270d4659f56ac54133.zip
platform/x86/amd/pmf: Ensure mutexes are initialized before use
[ Upstream commit e0c40529ff942a985eb0f3dacf18d35ee4dbb03d ] As soon as the first handler or sysfs file is registered the mutex may get used. Move the initialization to before any handler registration / sysfs file creation. Likewise move the destruction of the mutex to after all the de-initialization is done. Fixes: da5ce22df5fe ("platform/x86/amd/pmf: Add support for PMF core layer") Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230130132554.696025-1-hdegoede@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/platform/x86/thinkpad_acpi.c')
0 files changed, 0 insertions, 0 deletions