summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_iscsi.c
diff options
context:
space:
mode:
authorJayamohan Kallickal2010-08-12 20:06:06 +0200
committerJames Bottomley2010-09-02 22:13:09 +0200
commitb15d05b0d358cedf9c4d420a60d2ee2d0f530788 (patch)
treeac9f241824bc750507e5dc597e9045f7d08b0cb5 /drivers/scsi/be2iscsi/be_iscsi.c
parent[SCSI] fix bio.bi_rw handling (diff)
downloadkernel-qcow2-linux-b15d05b0d358cedf9c4d420a60d2ee2d0f530788.tar.gz
kernel-qcow2-linux-b15d05b0d358cedf9c4d420a60d2ee2d0f530788.tar.xz
kernel-qcow2-linux-b15d05b0d358cedf9c4d420a60d2ee2d0f530788.zip
[SCSI] be2iscsi: Fix for Login failure
The current code in tree has problems with Login. This patch fixes the Login Failure . Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com> [mnc: Can't believe I missed that.] Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_iscsi.c')
-rw-r--r--drivers/scsi/be2iscsi/be_iscsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c
index 7d4d2275573c..7f11f3e48e12 100644
--- a/drivers/scsi/be2iscsi/be_iscsi.c
+++ b/drivers/scsi/be2iscsi/be_iscsi.c
@@ -300,8 +300,7 @@ int beiscsi_get_host_param(struct Scsi_Host *shost,
enum iscsi_host_param param, char *buf)
{
struct beiscsi_hba *phba = (struct beiscsi_hba *)iscsi_host_priv(shost);
- int len = 0;
- int status;
+ int status = 0;
SE_DEBUG(DBG_LVL_8, "In beiscsi_get_host_param, param= %d\n", param);
switch (param) {
@@ -315,7 +314,7 @@ int beiscsi_get_host_param(struct Scsi_Host *shost,
default:
return iscsi_host_get_param(shost, param, buf);
}
- return len;
+ return status;
}
int beiscsi_get_macaddr(char *buf, struct beiscsi_hba *phba)