cERROR(1, ("Null session passed in to AllocMidQEntry ")); 
cERROR(1, ("Null session passed in to AllocMidQEntry")); 
AllocMidQEntry(struct smb_hdr *smb_buffer, struct cifsSesInfo *ses){	struct mid_q_entry *temp;	if (ses == NULL) {		cERROR(1, ("Null session passed in to AllocMidQEntry "));		return NULL;	}	if (ses->server == NULL) {		cERROR(1, ("Null TCP session in AllocMidQEntry"));		return NULL;	}		temp = (struct mid_q_entry *) mempool_alloc(cifs_mid_poolp,SLAB_KERNEL | SLAB_NOFS);	if (temp == NULL)		return temp;	else {		memset(temp, 0, sizeof (struct mid_q_entry));		temp->mid = smb_buffer->Mid;	/* always LE */		temp->pid = current->pid;		temp->command = smb_buffer->Command;		cFYI(1, ("For smb_command %d", temp->command));		do_gettimeofday(&temp->when_sent);		temp->ses = ses;		temp->tsk = current;	}	spin_lock(&GlobalMid_Lock);	list_add_tail(&temp->qhead, &ses->server->pending_mid_q);	atomic_inc(&midCount);	temp->midState = MID_REQUEST_ALLOCATED;	spin_unlock(&GlobalMid_Lock);	return temp;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/275cde1a1f3880601509c851d72c82bb8d3ee67c/transport.c/buggy/fs/cifs/transport.c