projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e6914
)
drm/radeon/kms: memset the allocated framebuffer before using it.
author
Dave Airlie
<airlied@redhat.com>
Mon, 17 Aug 2009 00:20:47 +0000
(10:20 +1000)
committer
Dave 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_fb.c
b/drivers/gpu/drm/radeon/radeon_fb.c
index 3206c0ad7b6c3c9a292c7b6ba13fc38e9e2badcb..ec383edf5f38acb3370fb570a5553e792e45604f 100644
(file)
--- 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;