OSDN Git Service

fix kernel oops when removing fb
authorHong Liu <hong.liu@intel.com>
Fri, 9 May 2008 02:06:17 +0000 (10:06 +0800)
committerJesse Barnes <jbarnes@nietzche.virtuousgeek.org>
Mon, 12 May 2008 19:31:56 +0000 (12:31 -0700)
commita51e38548cfdece2978e9b5f0d6f0467ba7a7272
treebe8ee6a1f706d4e75a17cb04c2480e7501dc3b63
parentb2dee13f5d7209b62c5e9ba8cd059717a8302fec
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.
linux-core/drmP.h
linux-core/drm_crtc.c
linux-core/intel_drv.h
linux-core/intel_fb.c
linux-core/radeon_ms_fb.c
shared-core/radeon_ms.h