diff options
author | Hong Liu <hong.liu@intel.com> | 2008-05-09 10:06:17 +0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@nietzche.virtuousgeek.org> | 2008-05-12 12:31:56 -0700 |
commit | a51e38548cfdece2978e9b5f0d6f0467ba7a7272 (patch) | |
tree | be8ee6a1f706d4e75a17cb04c2480e7501dc3b63 /linux-core/drmP.h | |
parent | b2dee13f5d7209b62c5e9ba8cd059717a8302fec (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 'linux-core/drmP.h')
-rw-r--r-- | linux-core/drmP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 52d2782a..60ae018e 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -744,7 +744,7 @@ struct drm_driver { /* FB routines, if present */ int (*fb_probe)(struct drm_device *dev, struct drm_crtc *crtc, struct drm_output *output); - int (*fb_remove)(struct drm_device *dev, struct drm_crtc *crtc); + int (*fb_remove)(struct drm_device *dev, struct drm_framebuffer *fb); int (*fb_resize)(struct drm_device *dev, struct drm_crtc *crtc); /* Master routines */ |