mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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>
This commit is contained in:
parent
80e6914db1
commit
bf8e828b00
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue