Bladeren bron

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: Dave Airlie <airlied@redhat.com>
Dave Airlie 16 jaren geleden
bovenliggende
commit
bf8e828b00
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      drivers/gpu/drm/radeon/radeon_fb.c

+ 2 - 0
drivers/gpu/drm/radeon/radeon_fb.c

@@ -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;