hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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 }