Skip to content

Commit

Permalink
drm/msm: fix memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Micah Richert <richert@braincorporation.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
  • Loading branch information
Micah Richert authored and Rob Clark committed Apr 25, 2014
1 parent abaafc0 commit 1ffa242
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/msm/msm_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1ffa242

Please sign in to comment.