Clean up and return if no outputs are found.
authorKristian Høgsberg <krh@redhat.com>
Fri, 20 Apr 2007 20:52:04 +0000 (16:52 -0400)
committerKristian Høgsberg <krh@redhat.com>
Fri, 20 Apr 2007 20:52:04 +0000 (16:52 -0400)
linux-core/intel_sdvo.c

index 507b0f5..98c4034 100644 (file)
@@ -1054,6 +1054,8 @@ void intel_sdvo_init(drm_device_t *dev, int output_device)
                DRM_DEBUG("%s: No active RGB or TMDS outputs (0x%02x%02x)\n",
                          SDVO_NAME(sdvo_priv),
                          bytes[0], bytes[1]);
+               drm_output_destroy(output);
+               return;
        }
        strcpy (name, name_prefix);
        strcat (name, name_suffix);