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

Commit 60228646 authored by Tommi Rantala's avatar Tommi Rantala Committed by Dave Airlie
Browse files

drm/mgag200: free memory allocated with alloc_apertures()



Fix a memory leak by deallocating the memory we got from
alloc_apertures().

Signed-off-by: default avatarTommi Rantala <tt.rantala@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 0a7fdc59
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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")) {