diff options
author | Rafael J. Wysocki <[email protected]> | 2023-03-28 20:43:26 +0200 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2023-03-28 20:49:47 +0200 |
commit | b57841fb0b564c61508222e885ac8f30a2811089 (patch) | |
tree | b6e66475ec8acfa41eb7ac86b3c8ed849faaa27a /lib/test_fortify/write_overflow-strscpy.c | |
parent | 197b6b60ae7bc51dd0814953c562833143b292aa (diff) |
thermal: core: Drop excessive lockdep_assert_held() calls
The lockdep_assert_held() calls added to cooling_device_stats_setup()
and cooling_device_stats_destroy() by commit 790930f44289 ("thermal:
core: Introduce thermal_cooling_device_update()") trigger false-positive
lockdep reports in code paths that are not subject to race conditions
(before cooling device registration and after cooling device removal).
For this reason, remove the lockdep_assert_held() calls from both
cooling_device_stats_setup() and cooling_device_stats_destroy() and
add one to thermal_cooling_device_stats_reinit() that has to be called
under the cdev lock.
Fixes: 790930f44289 ("thermal: core: Introduce thermal_cooling_device_update()")
Link: https://lore.kernel.org/linux-acpi/[email protected]
Reported-by: Imre Deak <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions