From: Dave Airlie Date: Mon, 17 Aug 2009 00:20:47 +0000 (+1000) Subject: drm/radeon/kms: memset the allocated framebuffer before using it. X-Git-Tag: accepted/tizen/common/20141203.182822~14967^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf8e828b00a5b6a0fea16f452be578c060d57d64;p=platform%2Fkernel%2Flinux-arm64.git 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 --- diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 3206c0a..ec383ed 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/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;