]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/migrate: Fix an error path
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 10 Sep 2025 16:09:39 +0000 (18:09 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 10 Oct 2025 09:35:11 +0000 (11:35 +0200)
The exhaustive eviction accidently changed an error path goto to
a return. Fix this.

Fixes: 59eabff2a352 ("drm/xe: Convert xe_bo_create_pin_map() for exhaustive eviction")
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://lore.kernel.org/r/20250910160939.103473-1-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_migrate.c

index ad03afb5145f85a06bd494a2f4a3e6032aec6922..7345a5b65169aace2db6b76e5ecd4b2097cc68ac 100644 (file)
@@ -434,7 +434,7 @@ int xe_migrate_init(struct xe_migrate *m)
 
        err = xe_migrate_lock_prepare_vm(tile, m, vm);
        if (err)
-               return err;
+               goto err_out;
 
        if (xe->info.has_usm) {
                struct xe_hw_engine *hwe = xe_gt_hw_engine(primary_gt,