Skip to contentSkip to conversation

be2iscsi: SGE Len == 64K

PATCH New Jayamohan Kallickal 1 participant 1 message Oct 6, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 be2iscsi: SGE Len == 64K

This patch fixes a overflow problem when sge-len == 65536.

This was submitted earlier. Looks like it was missed
http://www.spinics.net/lists/linux-scsi/msg44947.html

---
 drivers/scsi/be2iscsi/be_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/be2iscsi/be_main.c +1 -1
index 8220bde..75a85aa 100644
@@ -2040,7 +2040,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.7.1