diff options
author | Dave Airlie <airlied@redhat.com> | 2009-08-17 02:20:47 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-19 06:11:32 +0200 |
commit | bf8e828b00a5b6a0fea16f452be578c060d57d64 (patch) | |
tree | 64293a39ee2a4df261bc957bf912d3801fa97afe /drivers/gpu | |
parent | drm/radeon/kms: although LVDS might be possible on crtc 1 don't do it. (diff) | |
download | linux-bf8e828b00a5b6a0fea16f452be578c060d57d64.tar.xz linux-bf8e828b00a5b6a0fea16f452be578c060d57d64.zip |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_fb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 3206c0ad7b6c..ec383edf5f38 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; |