diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2009-12-08 11:15:10 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-08 11:15:10 +1000 |
commit | b0a007dc27d8d3ff3db07b3ea997323d9330f770 (patch) | |
tree | 96b614f8e7c139b2142f2deb1f9fb6e98fd0a7df /drivers/gpu/drm/drm_fb_helper.c | |
parent | 447aeb907e417e0e837b4a4026d5081c88b6e8ca (diff) | |
download | blackbird-op-linux-b0a007dc27d8d3ff3db07b3ea997323d9330f770.tar.gz blackbird-op-linux-b0a007dc27d8d3ff3db07b3ea997323d9330f770.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
-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, 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) { |