projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
447aeb9
)
drm/kms: fix fb cmap allocation to use modeset->crtc not crtc
author
Ben Skeggs
<bskeggs@redhat.com>
Tue, 8 Dec 2009 01:15:10 +0000
(11:15 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 8 Dec 2009 01:15:10 +0000
(11:15 +1000)
crtc may be undefined at this point.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_fb_helper.c
b/drivers/gpu/drm/drm_fb_helper.c
index
515b838
..
9a0aac0
100644
(file)
--- a/
drivers/gpu/drm/drm_fb_helper.c
+++ b/
drivers/gpu/drm/drm_fb_helper.c
@@
-908,7
+908,7
@@
int drm_fb_helper_single_fb_probe(struct drm_device *dev,
if (new_fb) {
info->var.pixclock = 0;
- ret = fb_alloc_cmap(&info->cmap, crtc->gamma_size, 0);
+ ret = fb_alloc_cmap(&info->cmap,
modeset->
crtc->gamma_size, 0);
if (ret)
return ret;
if (register_framebuffer(info) < 0) {