From 6238ebee21f800cec6c77b6bf90d7916ca945931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 20 Apr 2007 16:52:04 -0400 Subject: Clean up and return if no outputs are found. --- linux-core/intel_sdvo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux-core/intel_sdvo.c') diff --git a/linux-core/intel_sdvo.c b/linux-core/intel_sdvo.c index 507b0f5e..98c4034d 100644 --- a/linux-core/intel_sdvo.c +++ b/linux-core/intel_sdvo.c @@ -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); -- cgit v1.2.3