Commit bf8e828b authored by Dave Airlie's avatar Dave Airlie

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: default avatarDave Airlie <airlied@redhat.com>
parent 80e6914d
...@@ -574,6 +574,8 @@ int radeonfb_create(struct radeon_device *rdev, ...@@ -574,6 +574,8 @@ int radeonfb_create(struct radeon_device *rdev,
goto out_unref; goto out_unref;
} }
memset_io(fbptr, 0, aligned_size);
strcpy(info->fix.id, "radeondrmfb"); strcpy(info->fix.id, "radeondrmfb");
info->fix.type = FB_TYPE_PACKED_PIXELS; info->fix.type = FB_TYPE_PACKED_PIXELS;
info->fix.visual = FB_VISUAL_TRUECOLOR; info->fix.visual = FB_VISUAL_TRUECOLOR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment