projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a7fdc5
)
drm/mgag200: free memory allocated with alloc_apertures()
author
Tommi Rantala
<tt.rantala@gmail.com>
Fri, 9 Nov 2012 09:19:37 +0000
(09:19 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 20 Nov 2012 06:06:25 +0000
(16:06 +1000)
Fix a memory leak by deallocating the memory we got from
alloc_apertures().
Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_main.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/mgag200/mgag200_main.c
b/drivers/gpu/drm/mgag200/mgag200_main.c
index
07d4b24
..
857d71b
100644
(file)
--- a/
drivers/gpu/drm/mgag200/mgag200_main.c
+++ b/
drivers/gpu/drm/mgag200/mgag200_main.c
@@
-145,6
+145,7
@@
static int mga_vram_init(struct mga_device *mdev)
aper->count = 1;
remove_conflicting_framebuffers(aper, "mgafb", true);
+ kfree(aper);
if (!request_mem_region(mdev->mc.vram_base, mdev->mc.vram_window,
"mgadrmfb_vram")) {