aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/x86/nested_exceptions_test.c
diff options
context:
space:
mode:
authorAvri Altman <[email protected]>2025-01-28 07:12:07 +0000
committerMartin K. Petersen <[email protected]>2025-02-03 21:53:00 +0000
commit839a74b5649c9f41d939a05059b5ca6b17156d03 (patch)
treeb5fef5c3a86b0a371148b96ffd28a09d20b8361b /tools/testing/selftests/kvm/x86/nested_exceptions_test.c
parentscsi: ufs: core: Ensure clk_gating.lock is used only after initialization (diff)
downloadkernel-839a74b5649c9f41d939a05059b5ca6b17156d03.tar.gz
kernel-839a74b5649c9f41d939a05059b5ca6b17156d03.zip
scsi: ufs: Fix toggling of clk_gating.state when clock gating is not allowed
This commit addresses an issue where clk_gating.state is being toggled in ufshcd_setup_clocks() even if clock gating is not allowed. The fix is to add a check for hba->clk_gating.is_initialized before toggling clk_gating.state in ufshcd_setup_clocks(). Since clk_gating.lock is now initialized unconditionally, it can no longer lead to the spinlock being used before it is properly initialized, but instead it is mostly for documentation purposes. Fixes: 1ab27c9cf8b6 ("ufs: Add support for clock gating") Reported-by: Geert Uytterhoeven <[email protected]> Tested-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Avri Altman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions