diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2008-06-02 10:44:29 +0100 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2008-06-02 10:44:29 +0100 |
commit | 3ed17803d826b10f8f94d09acf12877e9738823c (patch) | |
tree | c25b3ad4bcca87e47eaa4cd917824c17cc72fa90 /linux-core/intel_fb.c | |
parent | dc022084cda0a5558f033c3caa657d5af84ef544 (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.c | 3 |
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; } |