From patchwork Fri May 7 08:37:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 97661 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o479O19R012795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 7 May 2010 09:24:37 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OAJlr-0005pS-VE; Fri, 07 May 2010 09:22:59 +0000 Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OAJ3Z-0008P0-5H for dri-devel@lists.sourceforge.net; Fri, 07 May 2010 08:37:13 +0000 Received-SPF: pass (sfi-mx-3.v28.ch3.sourceforge.com: domain of gmail.com designates 74.125.82.47 as permitted sender) client-ip=74.125.82.47; envelope-from=error27@gmail.com; helo=mail-ww0-f47.google.com; Received: from mail-ww0-f47.google.com ([74.125.82.47]) by sfi-mx-3.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1OAJ3X-0007jk-WF for dri-devel@lists.sourceforge.net; Fri, 07 May 2010 08:37:13 +0000 Received: by wwb18 with SMTP id 18so277059wwb.34 for ; Fri, 07 May 2010 01:37:06 -0700 (PDT) Received: by 10.216.85.148 with SMTP id u20mr8005539wee.219.1273221425933; Fri, 07 May 2010 01:37:05 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id e82sm818861wej.4.2010.05.07.01.37.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 May 2010 01:37:05 -0700 (PDT) Date: Fri, 7 May 2010 10:37:01 +0200 From: Dan Carpenter To: David Airlie Subject: [patch] i915: missing unlock on error path Message-ID: <20100507083701.GW27064@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: 3.1 (+++) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 1.1 RCVD_IN_SORBS_WEB RBL: SORBS: sender is a abuseable web server [205.177.176.130 listed in dnsbl.sorbs.net] 1.5 RCVD_IN_PSBL RBL: Received via a relay in PSBL [205.177.176.130 listed in psbl.surriel.com] -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.0 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.0 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 1.5 SF_NO_SPF_SPAM SF_NO_SPF_SPAM 0.5 AWL AWL: From: address is in the auto white-list X-Headers-End: 1OAJ3X-0007jk-WF X-Mailman-Approved-At: Fri, 07 May 2010 09:22:58 +0000 Cc: Kristian =?iso-8859-1?Q?H=F8gsberg?= , jirislaby@gmail.com, Jesse Barnes , dri-devel@lists.sourceforge.net X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 07 May 2010 09:24:38 +0000 (UTC) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 01e91ea..a605c87 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -369,6 +369,7 @@ int i965_reset(struct drm_device *dev, u8 flags) } } else { DRM_ERROR("Error occurred. Don't know how to reset this chip.\n"); + mutex_unlock(&dev->struct_mutex); return -ENODEV; }