diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2009-12-07 20:15:10 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-07 20:15:10 -0500 |
commit | b0a007dc27d8d3ff3db07b3ea997323d9330f770 (patch) | |
tree | 96b614f8e7c139b2142f2deb1f9fb6e98fd0a7df | |
parent | 447aeb907e417e0e837b4a4026d5081c88b6e8ca (diff) |
drm/kms: fix fb cmap allocation to use modeset->crtc not crtc
crtc may be undefined at this point.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 515b838006d2..9a0aac0f7b79 100644 --- 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, | |||
908 | 908 | ||
909 | if (new_fb) { | 909 | if (new_fb) { |
910 | info->var.pixclock = 0; | 910 | info->var.pixclock = 0; |
911 | ret = fb_alloc_cmap(&info->cmap, crtc->gamma_size, 0); | 911 | ret = fb_alloc_cmap(&info->cmap, modeset->crtc->gamma_size, 0); |
912 | if (ret) | 912 | if (ret) |
913 | return ret; | 913 | return ret; |
914 | if (register_framebuffer(info) < 0) { | 914 | if (register_framebuffer(info) < 0) { |