be2iscsi: Fix for 64K data
Subsystems (2)
PATCH 1/1 be2iscsi: Fix for 64K data
This patch fixes a wraparound issue when the length=65536 for an sge.
Since it was defined as a short, the length becomes zero
This patch has been made over scsi-rc-fixes-2.6 tree pulled today
Signed-off-by Jayamohan Kallickal <[email protected]>
--- drivers/scsi/be2iscsi/be_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/be2iscsi/be_main.c +1 -1
@@ -1764,7 +1764,7 @@ hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg, unsigned int num_sg, struct beiscsi_io_task *io_task) { struct iscsi_sge *psgl; -unsigned short sg_len, index; +unsigned int sg_len, index;unsigned int sge_len =0 ;unsigned long long addr;struct scatterlist *l_sg;
Signature · 1 line
1.6.5.2
Quoted 15 lines · Jayamohan Kallickal
This patch fixes a wraparound issue when the length=65536 for an sge.
Since it was defined as a short, the length becomes zeroThis patch has been made over scsi-rc-fixes-2.6 tree pulled today
Signed-off-by Jayamohan Kallickal<[email protected]>--- drivers/scsi/be2iscsi/be_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/scsi/be2iscsi/be_main.c +0
-0
drivers/scsi/be2iscsi/be_main.c hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg, · line 1770
Quoted 8 lines
drivers/scsi/be2iscsi/be_main.c +1
-1@@ -1764,7 +1764,7 @@ hwi_write_sgl(struct iscsi_wrb *pwrb, struct scatterlist *sg, unsigned int num_sg, struct beiscsi_io_task *io_task) { struct iscsi_sge *psgl; -unsigned short sg_len, index; +unsigned int sg_len, index;unsigned int sge_len =0 ;unsigned long long addr;struct scatterlist *l_sg;
Looks good.
Reviewed-by Mike Christie <[email protected]>