[PATCH] DSPBRIDGE: Always delete nodes during resource cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 9b263cc8cf0dea7e440aabb77fc88d06e01d62a4 Mon Sep 17 00:00:00 2001
From: Ernesto Ramos <ernesto@ernesto-desktop.(none)>
Date: Thu, 18 Mar 2010 23:48:56 -0600
Subject: [PATCH] DSPBRIDGE: Always delete nodes during resource cleanup

Right now, during resource clean up, nodes are not being
deleted if they are in state NODE_DONE. This fix makes
sure they are deleted if they are in any valid state.

Signed-off-by: Ernesto Ramos <ernesto@xxxxxx>
---
 drivers/dsp/bridge/rmgr/drv.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/drivers/dsp/bridge/rmgr/drv.c b/drivers/dsp/bridge/rmgr/drv.c
index 98f9b78..75b9b9f 100644
--- a/drivers/dsp/bridge/rmgr/drv.c
+++ b/drivers/dsp/bridge/rmgr/drv.c
@@ -157,17 +157,11 @@ static dsp_status drv_proc_free_node_res(bhandle hPCtxt)
 			if (node_state <= NODE_DELETING) {
 				if ((node_state == NODE_RUNNING) ||
 				    (node_state == NODE_PAUSED) ||
-				    (node_state == NODE_TERMINATING)) {
+				    (node_state == NODE_TERMINATING))
 					status = node_terminate
 					    (node_res_obj->hnode, &status);
-					status =
-					    node_delete(node_res_obj->hnode,
-							ctxt);
-				} else if ((node_state == NODE_ALLOCATED)
-					   || (node_state == NODE_CREATED))
-					status =
-					    node_delete(node_res_obj->hnode,
-							ctxt);
+
+				status = node_delete(node_res_obj->hnode, ctxt);
 			}
 		}
 	}
-- 
1.5.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux