kernel/drivers/gpu/drm/panfrost/panfrost_mmu.c
.. .. @@ -236,7 +236,7 @@ 236 236 if (pm_runtime_active(pfdev->dev)) 237 237 mmu_hw_do_operation(pfdev, mmu, iova, size, AS_COMMAND_FLUSH_PT); 238 238 239 - pm_runtime_put_sync_autosuspend(pfdev->dev);239 + pm_runtime_put_autosuspend(pfdev->dev);240 240 } 241 241 242 242 static int mmu_map_sg(struct panfrost_device *pfdev, struct panfrost_mmu *mmu, .. .. @@ -451,6 +451,7 @@ 451 451 if (IS_ERR(pages[i])) { 452 452 mutex_unlock(&bo->base.pages_lock); 453 453 ret = PTR_ERR(pages[i]); 454 + pages[i] = NULL;454 455 goto err_pages; 455 456 } 456 457 }