mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
drm/msm: fix memory leak
Signed-off-by: Micah Richert <richert@braincorporation.com> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
abaafc0af9
commit
1ffa2425bf
1 changed files with 3 additions and 1 deletions
|
@ -118,8 +118,10 @@ static void put_pages(struct drm_gem_object *obj)
|
|||
|
||||
if (iommu_present(&platform_bus_type))
|
||||
drm_gem_put_pages(obj, msm_obj->pages, true, false);
|
||||
else
|
||||
else {
|
||||
drm_mm_remove_node(msm_obj->vram_node);
|
||||
drm_free_large(msm_obj->pages);
|
||||
}
|
||||
|
||||
msm_obj->pages = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue