From: Jayamohan Kallickal Date: Wed, 4 Apr 2012 04:41:37 +0000 (-0500) Subject: [SCSI] be2iscsi: Fix in ASYNC PDU stitching logic. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2ba02b89a1bfccb152302fa01651e21d98e9d1b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [SCSI] be2iscsi: Fix in ASYNC PDU stitching logic. The buffer length passed for processing the ASYNC PDU was not proper. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 4765f47b612a..fef6f073c4ab 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -1655,7 +1655,7 @@ hwi_fwd_async_msg(struct beiscsi_conn *beiscsi_conn, } memcpy(pfirst_buffer + offset, pasync_handle->pbuffer, buf_len); - offset = buf_len; + offset += buf_len; } index++; } @@ -1664,7 +1664,7 @@ hwi_fwd_async_msg(struct beiscsi_conn *beiscsi_conn, (beiscsi_conn->beiscsi_conn_cid - phba->fw_config.iscsi_cid_start), phdr, hdr_len, pfirst_buffer, - buf_len); + offset); if (status == 0) hwi_free_async_msg(phba, cri);