forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/panfrost/panfrost_mmu.c
....@@ -236,7 +236,7 @@
236236 if (pm_runtime_active(pfdev->dev))
237237 mmu_hw_do_operation(pfdev, mmu, iova, size, AS_COMMAND_FLUSH_PT);
238238
239
- pm_runtime_put_sync_autosuspend(pfdev->dev);
239
+ pm_runtime_put_autosuspend(pfdev->dev);
240240 }
241241
242242 static int mmu_map_sg(struct panfrost_device *pfdev, struct panfrost_mmu *mmu,
....@@ -451,6 +451,7 @@
451451 if (IS_ERR(pages[i])) {
452452 mutex_unlock(&bo->base.pages_lock);
453453 ret = PTR_ERR(pages[i]);
454
+ pages[i] = NULL;
454455 goto err_pages;
455456 }
456457 }