From patchwork Fri Jun 19 20:30:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 31403 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 n5JKUZrM025724 for ; Fri, 19 Jun 2009 20:30:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755319AbZFSUaZ (ORCPT ); Fri, 19 Jun 2009 16:30:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752130AbZFSUaU (ORCPT ); Fri, 19 Jun 2009 16:30:20 -0400 Received: from smtp.wellnetcz.com ([212.24.148.102]:40502 "EHLO smtp.wellnetcz.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbZFSUaR (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 n5JLBtd8015078; 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 4/4] V4L: saa7134, fix lock imbalance Date: Fri, 19 Jun 2009 22:30:07 +0200 Message-Id: <1245443407-17410-4-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 seems to be one superfluos unlock in a poll function. Remove it. Signed-off-by: Jiri Slaby --- drivers/media/video/saa7134/saa7134-video.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c index 82b57a6..dd9aab0 100644 --- a/drivers/media/video/saa7134/saa7134-video.c +++ b/drivers/media/video/saa7134/saa7134-video.c @@ -1443,7 +1443,6 @@ video_poll(struct file *file, struct poll_table_struct *wait) fh->cap.ops->buf_queue(&fh->cap,fh->cap.read_buf); fh->cap.read_off = 0; } - mutex_unlock(&fh->cap.vb_lock); buf = fh->cap.read_buf; }