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

Commit 1053f4dd authored by Thierry Reding's avatar Thierry Reding
Browse files

drm/tegra: Plug memory leak



Free the DRM device-private memory upon driver unload to make sure the
memory doesn't leak.

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 71c38629
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -118,6 +118,8 @@ static int tegra_drm_unload(struct drm_device *drm)
		drm_mm_takedown(&tegra->mm);
	}

	kfree(tegra);

	return 0;
}