diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-11-09 09:19:37 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-20 16:06:25 +1000 |
commit | 602286469cebc9dcd6391eb33199736b15b82483 (patch) | |
tree | ae28ce54a1cf2bd4c17a6afeeaf7df49f6a45bff /drivers/gpu/drm/mgag200/mgag200_main.c | |
parent | 0a7fdc59fba559dfbce14963b32102125c49cb10 (diff) | |
download | kernel_goldelico_gta04-602286469cebc9dcd6391eb33199736b15b82483.zip kernel_goldelico_gta04-602286469cebc9dcd6391eb33199736b15b82483.tar.gz kernel_goldelico_gta04-602286469cebc9dcd6391eb33199736b15b82483.tar.bz2 |
drm/mgag200: free memory allocated with alloc_apertures()
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>
Diffstat (limited to 'drivers/gpu/drm/mgag200/mgag200_main.c')
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_main.c b/drivers/gpu/drm/mgag200/mgag200_main.c index 07d4b24..857d71b 100644 --- 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")) { |