drm/radeon/kms: memset the allocated framebuffer before using it.
authorDave Airlie <airlied@redhat.com>
Mon, 17 Aug 2009 00:20:47 +0000 (10:20 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Aug 2009 04:11:32 +0000 (14:11 +1000)
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>
drivers/gpu/drm/radeon/radeon_fb.c

index 3206c0ad7b6c3c9a292c7b6ba13fc38e9e2badcb..ec383edf5f38acb3370fb570a5553e792e45604f 100644 (file)
@@ -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;