/* tipc_disconnect(): Disconnect port form peer. This is a node local operation.  */
int tipc_disconnect(u32 ref)
/* tipc_disconnect(): Disconnect port form peer. This is a node local operation.  */
int tipc_disconnect(u32 ref)
{
	struct port *p_ptr;
	int res;
	p_ptr = tipc_port_lock(ref);
	if (!p_ptr)
		return -EINVAL;
	res = tipc_disconnect_port((struct tipc_port *)p_ptr);
	tipc_port_unlock(p_ptr);
	return res;
}