mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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:49cf1b9b60("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 commitdab751b424) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
This commit is contained in:
parent
4bb927139c
commit
0fd2f9f39a
|
|
@ -661,6 +661,8 @@ static int pf_restore_vf_vram_mig_data(struct xe_gt *gt, unsigned int vfid,
|
|||
goto err;
|
||||
}
|
||||
|
||||
xe_bo_put(vram);
|
||||
|
||||
return 0;
|
||||
err:
|
||||
xe_bo_put(vram);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user