ib_cancel_mad(cm_id_priv->av.port->mad_agent, (unsigned long) cm_id_priv->msg); 
ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); 
static int cm_rtu_handler(struct cm_work *work){	struct cm_id_private *cm_id_priv;	struct cm_rtu_msg *rtu_msg;	unsigned long flags;	int ret;	rtu_msg = (struct cm_rtu_msg *)work->mad_recv_wc->recv_buf.mad;	cm_id_priv = cm_acquire_id(rtu_msg->remote_comm_id,				   rtu_msg->local_comm_id);	if (!cm_id_priv)		return -EINVAL;	work->cm_event.private_data = &rtu_msg->private_data;	spin_lock_irqsave(&cm_id_priv->lock, flags);	if (cm_id_priv->id.state != IB_CM_REP_SENT &&	    cm_id_priv->id.state != IB_CM_MRA_REP_RCVD) {		spin_unlock_irqrestore(&cm_id_priv->lock, flags);		goto out;	}	cm_id_priv->id.state = IB_CM_ESTABLISHED;	ib_cancel_mad(cm_id_priv->av.port->mad_agent,		      (unsigned long) cm_id_priv->msg);	ret = atomic_inc_and_test(&cm_id_priv->work_count);	if (!ret)		list_add_tail(&work->list, &cm_id_priv->work_list);	spin_unlock_irqrestore(&cm_id_priv->lock, flags);	if (ret)		cm_process_work(cm_id_priv, work);	else		cm_deref_id(cm_id_priv);	return 0;out:	cm_deref_id(cm_id_priv);	return -EINVAL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/34816ad98efe4d47ffd858a0345321f9d85d9420/cm.c/buggy/drivers/infiniband/core/cm.c