]> git.ipfire.org Git - thirdparty/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)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 13 Oct 2025 20:03:08 +0000 (13:03 -0700)
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
(cherry picked from commit 381f1ed15159c4b3f00dd37cc70924dedebeb111)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_migrate.c

index 1d667fa36cf3f25242b340ded1c3ae348482a8b4..569869a2b3398527ef0b5d0d5eabef95df3c1c4e 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,