xfree86: return NULL for compat output if no outputs.
authorDave Airlie <airlied@redhat.com>
Tue, 29 Oct 2013 16:09:26 +0000 (12:09 -0400)
committerKeith Packard <keithp@keithp.com>
Thu, 14 Nov 2013 07:35:20 +0000 (16:35 +0900)
commitd1440783a7367ff0d0c47d256bbca3b3cf8a5034
tree433abcdc164eadd235f3840e795780c64df87fb9
parentd7ee27e5e415778240919082c83a65226c6f17e6
xfree86: return NULL for compat output if no outputs.

With outputless GPUs showing up we crash here if there are not outputs
try and recover with a bit of grace.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
hw/xfree86/modes/xf86Crtc.c