Skip to content

Commit 0fd2f9f

Browse files
mwiniarsThomas Hellström
authored andcommitted
drm/xe/pf: Drop the VF VRAM BO reference on successful restore
The reference is only dropped on error. Fix it by adding the missing xe_bo_put(). Fixes: 49cf1b9 ("drm/xe/pf: Handle VRAM migration data as part of PF control") Reported-by: Adam Miszczak <adam.miszczak@linux.intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patch.msgid.link/20251114100713.1776073-1-michal.winiarski@intel.com Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> (cherry picked from commit dab751b) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 4bb9271 commit 0fd2f9f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,8 @@ static int pf_restore_vf_vram_mig_data(struct xe_gt *gt, unsigned int vfid,
661661
goto err;
662662
}
663663

664+
xe_bo_put(vram);
665+
664666
return 0;
665667
err:
666668
xe_bo_put(vram);

0 commit comments

Comments
 (0)