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_sidr_rep_handler(struct cm_work *work){	struct cm_sidr_rep_msg *sidr_rep_msg;	struct cm_id_private *cm_id_priv;	unsigned long flags;	sidr_rep_msg = (struct cm_sidr_rep_msg *)				work->mad_recv_wc->recv_buf.mad;	cm_id_priv = cm_acquire_id(sidr_rep_msg->request_id, 0);	if (!cm_id_priv)		return -EINVAL; /* Unmatched reply. */	spin_lock_irqsave(&cm_id_priv->lock, flags);	if (cm_id_priv->id.state != IB_CM_SIDR_REQ_SENT) {		spin_unlock_irqrestore(&cm_id_priv->lock, flags);		goto out;	}	cm_id_priv->id.state = IB_CM_IDLE;	ib_cancel_mad(cm_id_priv->av.port->mad_agent,		      (unsigned long) cm_id_priv->msg);	spin_unlock_irqrestore(&cm_id_priv->lock, flags);	cm_format_sidr_rep_event(work);	cm_process_work(cm_id_priv, work);	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