提交 60228646 编写于 作者: T Tommi Rantala 提交者: Dave Airlie

drm/mgag200: free memory allocated with alloc_apertures()

Fix a memory leak by deallocating the memory we got from
alloc_apertures().
Signed-off-by: NTommi Rantala <tt.rantala@gmail.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 0a7fdc59
......@@ -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")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册