hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/arm/midgard/mali_kbase_jd.c
....@@ -374,7 +374,7 @@
374374 #endif /* CONFIG_MALI_DMA_FENCE */
375375
376376 /* Take the processes mmap lock */
377
- down_read(&current->mm->mmap_sem);
377
+ down_read(&current->mm->mmap_lock);
378378
379379 /* need to keep the GPU VM locked while we set up UMM buffers */
380380 kbase_gpu_vm_lock(katom->kctx);
....@@ -439,7 +439,7 @@
439439 kbase_gpu_vm_unlock(katom->kctx);
440440
441441 /* Release the processes mmap lock */
442
- up_read(&current->mm->mmap_sem);
442
+ up_read(&current->mm->mmap_lock);
443443
444444 #ifdef CONFIG_KDS
445445 if (kds_res_count) {
....@@ -506,7 +506,7 @@
506506 #endif
507507 #if defined(CONFIG_KDS) || defined(CONFIG_MALI_DMA_FENCE)
508508 /* Lock the processes mmap lock */
509
- down_read(&current->mm->mmap_sem);
509
+ down_read(&current->mm->mmap_lock);
510510
511511 /* lock before we unmap */
512512 kbase_gpu_vm_lock(katom->kctx);
....@@ -522,7 +522,7 @@
522522 kbase_gpu_vm_unlock(katom->kctx);
523523
524524 /* Release the processes mmap lock */
525
- up_read(&current->mm->mmap_sem);
525
+ up_read(&current->mm->mmap_lock);
526526
527527 early_err_out:
528528 kfree(katom->extres);