projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19abd5c
)
drm: check for NULL fb here, shouldn't happen but avoid oops for now
author
Dave Airlie
<airlied@linux.ie>
Thu, 8 May 2008 06:11:25 +0000
(16:11 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 8 May 2008 06:11:25 +0000
(16:11 +1000)
linux-core/intel_fb.c
patch
|
blob
|
history
diff --git
a/linux-core/intel_fb.c
b/linux-core/intel_fb.c
index
63491b6
..
7df1525
100644
(file)
--- a/
linux-core/intel_fb.c
+++ b/
linux-core/intel_fb.c
@@
-754,7
+754,12
@@
EXPORT_SYMBOL(intelfb_probe);
int intelfb_remove(struct drm_device *dev, struct drm_crtc *crtc)
{
struct drm_framebuffer *fb = crtc->fb;
- struct fb_info *info = fb->fbdev;
+ struct fb_info *info;
+
+ if (!fb)
+ return -EINVAL;
+
+ info = fb->fbdev;
if (info) {
unregister_framebuffer(info);