ladishd: actually remove app ports, simply logging does not make it happen

This commit is contained in:
Nedko Arnaudov 2010-11-08 02:17:39 +02:00
parent bea7c694e0
commit ee830a52ee
2 changed files with 5 additions and 1 deletions

View File

@ -2201,6 +2201,7 @@ ladish_graph_iterate_nodes(
struct ladish_graph_client * client_ptr;
void * client_context;
struct list_head * port_node_ptr;
struct list_head * port_temp_node_ptr;
struct ladish_graph_port * port_ptr;
list_for_each(client_node_ptr, &graph_ptr->clients)
@ -2229,7 +2230,7 @@ ladish_graph_iterate_nodes(
continue;
}
list_for_each(port_node_ptr, &client_ptr->ports)
list_for_each_safe(port_node_ptr, port_temp_node_ptr, &client_ptr->ports)
{
port_ptr = list_entry(port_node_ptr, struct ladish_graph_port, siblings_client);

View File

@ -1243,6 +1243,9 @@ remove_app_port(
ladish_graph_get_port_name(vgraph, port_handle),
ladish_graph_get_description(vgraph));
ladish_graph_remove_port(graph_handle, port_handle);
ladish_graph_remove_port(vgraph, port_handle);
return true;
}