Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ffa2425 authored by Micah Richert's avatar Micah Richert Committed by Rob Clark
Browse files

drm/msm: fix memory leak

parent abaafc0a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
	}