Skip to content

Commit

Permalink
drm/radeon/kms: memset the allocated framebuffer before using it.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Airlie committed Aug 19, 2009
1 parent 80e6914 commit bf8e828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/radeon/radeon_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bf8e828

Please sign in to comment.