From patchwork Fri Dec 11 01:04:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Philips X-Patchwork-Id: 66387 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBB15KRo029219 for ; Fri, 11 Dec 2009 01:05:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762054AbZLKBE4 (ORCPT ); Thu, 10 Dec 2009 20:04:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762050AbZLKBE4 (ORCPT ); Thu, 10 Dec 2009 20:04:56 -0500 Received: from mail-yw0-f176.google.com ([209.85.211.176]:60170 "EHLO mail-yw0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762052AbZLKBEz (ORCPT ); Thu, 10 Dec 2009 20:04:55 -0500 Received: by ywh6 with SMTP id 6so410155ywh.4 for ; Thu, 10 Dec 2009 17:05:01 -0800 (PST) Received: by 10.90.41.5 with SMTP id o5mr899863ago.87.1260493501635; Thu, 10 Dec 2009 17:05:01 -0800 (PST) Received: from localhost (c-24-21-209-253.hsd1.or.comcast.net [24.21.209.253]) by mx.google.com with ESMTPS id 14sm632940gxk.2.2009.12.10.17.05.00 (version=SSLv3 cipher=RC4-MD5); Thu, 10 Dec 2009 17:05:00 -0800 (PST) Date: Thu, 10 Dec 2009 17:04:49 -0800 From: Brandon Philips To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, stable@kernel.org Subject: [PATCH] ov511: fix probe() hang due to double mutex_lock Message-ID: <20091211010449.GV3387@jenkins> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c index 0bc2cf5..2bed9e2 100644 --- a/drivers/media/video/ov511.c +++ b/drivers/media/video/ov511.c @@ -5878,7 +5878,7 @@ ov51x_probe(struct usb_interface *intf, const struct usb_device_id *id) goto error; } - mutex_lock(&ov->lock); + mutex_unlock(&ov->lock); return 0;