Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Jayamohan Kallickal and committed by
James Bottomley
b15d05b0 d842a93c

+3 -4
+2 -3
drivers/scsi/be2iscsi/be_iscsi.c
··· 300 300 enum iscsi_host_param param, char *buf) 301 301 { 302 302 struct beiscsi_hba *phba = (struct beiscsi_hba *)iscsi_host_priv(shost); 303 - int len = 0; 304 - int status; 303 + int status = 0; 305 304 306 305 SE_DEBUG(DBG_LVL_8, "In beiscsi_get_host_param, param= %d\n", param); 307 306 switch (param) { ··· 314 315 default: 315 316 return iscsi_host_get_param(shost, param, buf); 316 317 } 317 - return len; 318 + return status; 318 319 } 319 320 320 321 int beiscsi_get_macaddr(char *buf, struct beiscsi_hba *phba)
+1 -1
drivers/scsi/be2iscsi/be_mgmt.c
··· 368 368 memset(req, 0, sizeof(*req)); 369 369 wrb->tag0 |= tag; 370 370 371 - be_wrb_hdr_prepare(wrb, sizeof(*req), true, 1); 371 + be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); 372 372 be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI, 373 373 OPCODE_COMMON_ISCSI_TCP_CONNECT_AND_OFFLOAD, 374 374 sizeof(*req));