From patchwork Wed Mar 17 14:25:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Hopf X-Patchwork-Id: 86344 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2HEP7Ke012860 for ; Wed, 17 Mar 2010 14:25:42 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7EB8C9E926; Wed, 17 Mar 2010 07:25:06 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A7089E7E1 for ; Wed, 17 Mar 2010 07:25:02 -0700 (PDT) Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 71D91457F0 for ; Wed, 17 Mar 2010 15:25:01 +0100 (CET) Date: Wed, 17 Mar 2010 15:25:01 +0100 From: Matthias Hopf To: intel-gfx@lists.freedesktop.org Message-ID: <20100317142501.GA28139@suse.de> MIME-Version: 1.0 Content-Disposition: inline Organization: SUSE LINUX Products GmbH, =?iso-8859-1?Q?G?= =?iso-8859-1?Q?F=3A_Markus_Rex=2C_HRB_16746_=28AG_N=FCrnberg=29?= User-Agent: Mutt/1.5.17 (2007-11-01) Subject: [Intel-gfx] [PATCH] intel driver vs. libdrm and NULL pointer handling X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 17 Mar 2010 14:25:42 +0000 (UTC) From c6f806d4b16a010a27a63352d5e29e55e522098e Mon Sep 17 00:00:00 2001 From: Matthias Hopf Date: Wed, 17 Mar 2010 15:13:51 +0100 Subject: [PATCH] Clear drmmode_output->mode_output in drmmode_output_destroy(). --- src/drmmode_display.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/drmmode_display.c b/src/drmmode_display.c index ae200ca..ec505f3 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -817,6 +817,7 @@ drmmode_output_destroy(xf86OutputPtr output) } xfree(drmmode_output->props); drmModeFreeConnector(drmmode_output->mode_output); + drmmode_output->mode_output = NULL; if (drmmode_output->private_data) { xfree(drmmode_output->private_data); drmmode_output->private_data = NULL; -- 1.6.0.2