forked from luck/tmp_suning_uos_patched
[SCSI] be2iscsi: Fix for freeing cid
This patch frees up the allocated cid and returns error if allocation of tag fails. Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
f5ed7bd4c6
commit
1f92638f07
@ -509,6 +509,8 @@ static int beiscsi_open_conn(struct iscsi_endpoint *ep,
|
||||
SE_DEBUG(DBG_LVL_1,
|
||||
"mgmt_open_connection Failed for cid=%d\n",
|
||||
beiscsi_ep->ep_cid);
|
||||
beiscsi_put_cid(phba, beiscsi_ep->ep_cid);
|
||||
return -EAGAIN;
|
||||
} else {
|
||||
wait_event_interruptible(phba->ctrl.mcc_wait[tag],
|
||||
phba->ctrl.mcc_numtag[tag]);
|
||||
|
Loading…
Reference in New Issue
Block a user