Skip to contentSkip to conversation

be2iscsi: Proper checking of state

PATCH New Jayamohan Kallickal 1 participant 1 message Jan 23, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/8 be2iscsi: Proper checking of state

This patch adds proper checking of value in for hba state.
We would be adding more states later on

---
 drivers/scsi/be2iscsi/be_iscsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/be2iscsi/be_iscsi.c +1 -1
index d5712bc..29a3aaf 100644
@@ -561,7 +561,7 @@ beiscsi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,
 		return ERR_PTR(ret);
 	}
 
-	if (phba->state) {
+	if (phba->state != BE_ADAPTER_UP) {
 		ret = -EBUSY;
 		SE_DEBUG(DBG_LVL_1, "The Adapter state is Not UP \n");
 		return ERR_PTR(ret);
Signature · 1 line
1.6.4