File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1325,7 +1325,7 @@ xe_migrate_update_pgtables(struct xe_migrate *m,
13251325 GFP_KERNEL , true, 0 );
13261326 if (IS_ERR (sa_bo )) {
13271327 err = PTR_ERR (sa_bo );
1328- goto err ;
1328+ goto err_bb ;
13291329 }
13301330
13311331 ppgtt_ofs = NUM_KERNEL_PDE +
@@ -1376,7 +1376,7 @@ xe_migrate_update_pgtables(struct xe_migrate *m,
13761376 update_idx );
13771377 if (IS_ERR (job )) {
13781378 err = PTR_ERR (job );
1379- goto err_bb ;
1379+ goto err_sa ;
13801380 }
13811381
13821382 /* Wait on BO move */
@@ -1425,12 +1425,12 @@ xe_migrate_update_pgtables(struct xe_migrate *m,
14251425
14261426err_job :
14271427 xe_sched_job_put (job );
1428+ err_sa :
1429+ drm_suballoc_free (sa_bo , NULL );
14281430err_bb :
14291431 if (!q )
14301432 mutex_unlock (& m -> job_mutex );
14311433 xe_bb_free (bb , NULL );
1432- err :
1433- drm_suballoc_free (sa_bo , NULL );
14341434 return ERR_PTR (err );
14351435}
14361436
You can’t perform that action at this time.
0 commit comments