Merge android12-gs-pixel-5.10-sc-qpr2 into android12-gs-pixel-5.10-sc-v2
Bug: 199698959
SBMerger: 410055097
Change-Id: I8602182a64dd93218c58073e1f89201cd8f9f3e5
Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
diff --git a/mali_kbase/platform/pixel/pixel_gpu_dvfs.c b/mali_kbase/platform/pixel/pixel_gpu_dvfs.c
index 89a3be7..ae6f496 100644
--- a/mali_kbase/platform/pixel/pixel_gpu_dvfs.c
+++ b/mali_kbase/platform/pixel/pixel_gpu_dvfs.c
@@ -625,7 +625,9 @@
}
/* Get the ASV table */
+ mutex_lock(&pc->dvfs.lock);
pc->dvfs.table_size = gpu_dvfs_update_asv_table(kbdev);
+ mutex_unlock(&pc->dvfs.lock);
if (pc->dvfs.table_size < 0) {
ret = -EINVAL;
goto done;