summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorHong Liu <hong.liu@intel.com>2008-05-09 10:06:17 +0800
committerJesse Barnes <jbarnes@nietzche.virtuousgeek.org>2008-05-12 12:31:56 -0700
commita51e38548cfdece2978e9b5f0d6f0467ba7a7272 (patch)
treebe8ee6a1f706d4e75a17cb04c2480e7501dc3b63 /shared-core
parentb2dee13f5d7209b62c5e9ba8cd059717a8302fec (diff)
fix kernel oops when removing fb
drm_crtc->fb may point to NULL, f.e X server will allocate a new fb and assign it to the CRTC at startup, when X server exits, it will destroy the allocated fb, making drm_crtc->fb points to NULL.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/radeon_ms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/radeon_ms.h b/shared-core/radeon_ms.h
index 1fdcd0a1..f3bbc9a3 100644
--- a/shared-core/radeon_ms.h
+++ b/shared-core/radeon_ms.h
@@ -436,7 +436,7 @@ int r3xx_fence_types(struct drm_buffer_object *bo,
/* radeon_ms_fb.c */
int radeonfb_probe(struct drm_device *dev, struct drm_crtc *crtc, struct drm_output *output);
-int radeonfb_remove(struct drm_device *dev, struct drm_crtc *crtc);
+int radeonfb_remove(struct drm_device *dev, struct drm_framebuffer *fb);
/* radeon_ms_gpu.c */
int radeon_ms_gpu_initialize(struct drm_device *dev);