summaryrefslogtreecommitdiff
path: root/linux-core/intel_fb.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-06-02 10:44:29 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-06-02 10:44:29 +0100
commit3ed17803d826b10f8f94d09acf12877e9738823c (patch)
treec25b3ad4bcca87e47eaa4cd917824c17cc72fa90 /linux-core/intel_fb.c
parentdc022084cda0a5558f033c3caa657d5af84ef544 (diff)
more checks for NULL encoder so we don't segfault.
Diffstat (limited to 'linux-core/intel_fb.c')
-rw-r--r--linux-core/intel_fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/intel_fb.c b/linux-core/intel_fb.c
index 268e95c5..d490880a 100644
--- a/linux-core/intel_fb.c
+++ b/linux-core/intel_fb.c
@@ -277,7 +277,8 @@ static int intelfb_set_par(struct fb_info *info)
found = 0;
list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
- if (connector->encoder->crtc == par->set.crtc){
+ if (connector->encoder &&
+ connector->encoder->crtc == par->set.crtc){
found = 1;
break;
}