diff options
author | Jayamohan Kallickal <jayamohank@serverengines.com> | 2010-01-23 05:36:52 +0530 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-08 18:34:13 -0600 |
commit | 5dc1c416b39531e3bcf0651ca4123e64228dd553 (patch) | |
tree | 6d907865d8c8accad049c8014b5afb00141ff540 /drivers/scsi/be2iscsi | |
parent | 230dceb4316da9c8e05c82b64f2527aee95da2ff (diff) | |
download | blackbird-op-linux-5dc1c416b39531e3bcf0651ca4123e64228dd553.tar.gz blackbird-op-linux-5dc1c416b39531e3bcf0651ca4123e64228dd553.zip |
[SCSI] be2iscsi: Proper checking of state
This patch adds proper checking of value in for hba state.
We would be adding more states later on
Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_iscsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index d5712bc19a71..29a3aaf35f9f 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c @@ -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); |