Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2ba02b8 authored by Jayamohan Kallickal's avatar Jayamohan Kallickal Committed by James Bottomley
Browse files

[SCSI] be2iscsi: Fix in ASYNC PDU stitching logic.



The buffer length passed for processing the ASYNC PDU
was not proper.

Signed-off-by: default avatarJohn Soni Jose <sony.john-n@emulex.com>
Signed-off-by: default avatarJayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent dc63aac6
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1655,7 +1655,7 @@ hwi_fwd_async_msg(struct beiscsi_conn *beiscsi_conn,
			}
			}
			memcpy(pfirst_buffer + offset,
			memcpy(pfirst_buffer + offset,
			       pasync_handle->pbuffer, buf_len);
			       pasync_handle->pbuffer, buf_len);
			offset = buf_len;
			offset += buf_len;
		}
		}
		index++;
		index++;
	}
	}
@@ -1664,7 +1664,7 @@ hwi_fwd_async_msg(struct beiscsi_conn *beiscsi_conn,
					   (beiscsi_conn->beiscsi_conn_cid -
					   (beiscsi_conn->beiscsi_conn_cid -
					    phba->fw_config.iscsi_cid_start),
					    phba->fw_config.iscsi_cid_start),
					    phdr, hdr_len, pfirst_buffer,
					    phdr, hdr_len, pfirst_buffer,
					    buf_len);
					    offset);


	if (status == 0)
	if (status == 0)
		hwi_free_async_msg(phba, cri);
		hwi_free_async_msg(phba, cri);