From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756400AbYIDSjh (ORCPT ); Thu, 4 Sep 2008 14:39:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757242AbYIDSh4 (ORCPT ); Thu, 4 Sep 2008 14:37:56 -0400 Received: from mail.work.de ([212.12.32.20]:58915 "EHLO mail.work.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757239AbYIDShz (ORCPT ); Thu, 4 Sep 2008 14:37:55 -0400 Message-ID: <48C02AFF.7010902@gmail.com> Date: Thu, 04 Sep 2008 22:37:51 +0400 From: Manu Abraham User-Agent: Thunderbird 1.5.0.14ubu (X11/20080306) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org, v4l-dvb-maintainer@linuxtv.org, akpm@linux-foundation.org Subject: DVB Update [PATCH 9/31] multiproto tree X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/mixed; boundary="------------040300040409040808030001" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------040300040409040808030001 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit >>From e7e5de8bd62c8bcff20570f1ee8b28fde02f8b88 Mon Sep 17 00:00:00 2001 From: Manu Abraham Date: Thu, 4 Sep 2008 12:34:05 +0200 Subject: [PATCH] DVB: Fix a possible lockup situation * If algorithm is not defined, we should not simply exit but the semaphore should be down and then only exit the frontend thread. From: Manu Abraham Signed-off-by: Manu Abraham dvb_frontend.c | 1 + 1 file changed, 1 insertion(+) --------------040300040409040808030001 Content-Type: text/x-patch; name="9.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="9.patch" >>From e7e5de8bd62c8bcff20570f1ee8b28fde02f8b88 Mon Sep 17 00:00:00 2001 From: Manu Abraham Date: Thu, 4 Sep 2008 12:34:05 +0200 Subject: [PATCH] DVB: Fix a possible lockup situation * If algorithm is not defined, we should not simply exit but the semaphore should be down and then only exit the frontend thread. From: Manu Abraham Signed-off-by: Manu Abraham diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index c830997..ac224db 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -1230,6 +1230,7 @@ restart: } break; default: + down(&fepriv->sem); dprintk("%s: UNDEFINED ALGO !\n", __func__); break; } --------------040300040409040808030001--