From patchwork Fri Jun 19 20:30:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 31402 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 n5JKUZrL025724 for ; Fri, 19 Jun 2009 20:30:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951AbZFSUaS (ORCPT ); Fri, 19 Jun 2009 16:30:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751908AbZFSUaS (ORCPT ); Fri, 19 Jun 2009 16:30:18 -0400 Received: from smtp.wellnetcz.com ([212.24.148.102]:40503 "EHLO smtp.wellnetcz.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbZFSUaR (ORCPT ); Fri, 19 Jun 2009 16:30:17 -0400 Received: from localhost.localdomain ([88.208.94.142]) by smtp.wellnetcz.com (8.14.1/8.14.1) with ESMTP id n5JLBtd6015078; Fri, 19 Jun 2009 23:11:56 +0200 From: Jiri Slaby To: mchehab@infradead.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 2/4] V4L: em28xx, fix lock imbalance Date: Fri, 19 Jun 2009 22:30:05 +0200 Message-Id: <1245443407-17410-2-git-send-email-jirislaby@gmail.com> X-Mailer: git-send-email 1.6.3.2 In-Reply-To: <1245443407-17410-1-git-send-email-jirislaby@gmail.com> References: <1245443407-17410-1-git-send-email-jirislaby@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org There is one omitted unlock in em28xx_usb_probe. Fix that. Signed-off-by: Jiri Slaby --- drivers/media/video/em28xx/em28xx-cards.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 36abb35..922d21d 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c @@ -2445,6 +2445,7 @@ static int em28xx_usb_probe(struct usb_interface *interface, retval = em28xx_init_dev(&dev, udev, interface, nr); if (retval) { em28xx_devused &= ~(1<devno); + mutex_unlock(&dev->lock); kfree(dev); goto err; }