From patchwork Thu Feb 11 17:33:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Chitriki X-Patchwork-Id: 78753 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1BHXij5024429 for ; Thu, 11 Feb 2010 17:33:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756200Ab0BKRdn (ORCPT ); Thu, 11 Feb 2010 12:33:43 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:56766 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755311Ab0BKRdn (ORCPT ); Thu, 11 Feb 2010 12:33:43 -0500 Received: from dlep34.itg.ti.com ([157.170.170.115]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o1BHXc8b023250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Feb 2010 11:33:38 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o1BHXbZk007883; Thu, 11 Feb 2010 11:33:37 -0600 (CST) Received: from soldel-laptop (soldel-laptop.am.dhcp.ti.com [128.247.79.63]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o1BHXbZ28614; Thu, 11 Feb 2010 11:33:37 -0600 (CST) Received: by soldel-laptop (Postfix, from userid 1000) id 5D21A606040; Thu, 11 Feb 2010 11:33:37 -0600 (CST) From: Deepak Chitriki To: linux-omap Cc: Deepak Chitriki , Ameya Palande , Omar Ramirez Luna , Nishanth Menon Subject: [PATCH v2] DSPBRIDGE: Fix to avoid possible recursive locking Date: Thu, 11 Feb 2010 11:33:17 -0600 Message-Id: <1265909597-4436-1-git-send-email-deepak.chitriki@ti.com> X-Mailer: git-send-email 1.6.3.3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 11 Feb 2010 17:33:45 +0000 (UTC) diff --git a/drivers/dsp/bridge/wmd/msg_sm.c b/drivers/dsp/bridge/wmd/msg_sm.c index d778cbc..7414113 100644 --- a/drivers/dsp/bridge/wmd/msg_sm.c +++ b/drivers/dsp/bridge/wmd/msg_sm.c @@ -295,7 +295,7 @@ DSP_STATUS WMD_MSG_Get(struct MSG_QUEUE *hMsgQueue, (struct list_head *)pMsgFrame); if (LST_IsEmpty(hMsgQueue->msgUsedList)) SYNC_ResetEvent(hMsgQueue->hSyncEvent); - else + else SYNC_SetEvent(hMsgQueue->hSyncEvent); fGotMsg = true; @@ -344,7 +344,7 @@ DSP_STATUS WMD_MSG_Get(struct MSG_QUEUE *hMsgQueue, } hMsgQueue->refCount--; /* Reset the event if there are still queued messages */ - if (!LST_IsEmpty(hMsgQueue->msgUsedList)) + if (!LST_IsEmpty(hMsgQueue->msgUsedList)) SYNC_SetEvent(hMsgQueue->hSyncEvent); /* Exit critical section */