From patchwork Mon Mar 14 21:03:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Lorenz X-Patchwork-Id: 634631 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2EL3o5J031684 for ; Mon, 14 Mar 2011 21:03:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757193Ab1CNVDp (ORCPT ); Mon, 14 Mar 2011 17:03:45 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:41682 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756364Ab1CNVDo (ORCPT ); Mon, 14 Mar 2011 17:03:44 -0400 Received: (qmail invoked by alias); 14 Mar 2011 21:03:42 -0000 Received: from stgt-5f728905.pool.mediaWays.net (EHLO mail.lorenz.priv) [95.114.137.5] by mail.gmx.net (mp065) with SMTP; 14 Mar 2011 22:03:42 +0100 X-Authenticated: #2283611 X-Provags-ID: V01U2FsdGVkX19k4CU05VRkKNe4DI2u8GnWY9aQrjyAk/LKLk+YAf jgCLwgVCSvq0Uj Received: from lorenz.dyndns.org (localhost [127.0.0.1]) by mail.lorenz.priv (Postfix) with ESMTP id 3CB8D14128; Mon, 14 Mar 2011 22:03:40 +0100 (CET) MIME-Version: 1.0 Date: Mon, 14 Mar 2011 22:03:40 +0100 From: Tobias Lorenz To: Cc: Nils Faerber , Subject: [PATCH] fix of mutex locking bug in =?UTF-8?Q?fops=5Fread?= Message-ID: <28773e810fb3efb9dc0a9cc683a2268f@localhost> X-Sender: tobias.lorenz@gmx.net User-Agent: RoundCube Webmail/0.3.1 X-Y-GMX-Trusted: 0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 14 Mar 2011 21:03:51 +0000 (UTC) diff --git a/drivers/media/radio/si470x/radio-si470x-common.c b/drivers/media/radio/si470x/radio-si470x-common.c index 4c69698..41ee757 100644 --- a/drivers/media/radio/si470x/radio-si470x-common.c +++ b/drivers/media/radio/si470x/radio-si470x-common.c @@ -483,7 +483,6 @@ static ssize_t si470x_fops_read(struct file *file, char __user *buf, count /= 3; /* copy RDS block out of internal buffer and to user buffer */ - mutex_lock(&radio->lock); while (block_count < count) { if (radio->rd_index == radio->wr_index)