mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 11:56:48 +00:00
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: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
71c38629d6
commit
1053f4dd82
@ -118,6 +118,8 @@ static int tegra_drm_unload(struct drm_device *drm)
|
||||
drm_mm_takedown(&tegra->mm);
|
||||
}
|
||||
|
||||
kfree(tegra);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user