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

Commit bf8e828b authored by Dave Airlie's avatar Dave Airlie
Browse files

drm/radeon/kms: memset the allocated framebuffer before using it.



This gets rid of some ugliness, we shuold probably find a way
for the GPU to zero this.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 80e6914d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -574,6 +574,8 @@ int radeonfb_create(struct radeon_device *rdev,
		goto out_unref;
	}

	memset_io(fbptr, 0, aligned_size);

	strcpy(info->fix.id, "radeondrmfb");
	info->fix.type = FB_TYPE_PACKED_PIXELS;
	info->fix.visual = FB_VISUAL_TRUECOLOR;