]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libiscsi, iscsi_tcp, iscsi_iser: check that burst lengths are valid.
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 31 Aug 2006 22:09:24 +0000 (18:09 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 2 Sep 2006 18:37:04 +0000 (13:37 -0500)
commitcbf35b0dc36adb1b376f1b5f0744a4b75eaa0414
tree037433a76a116c67d3f074c5a83305be8241a8e5
parent359b11238ebbdc22f4c96b8aab56a50aaa7f1794
[SCSI] libiscsi, iscsi_tcp, iscsi_iser: check that burst lengths are valid.

iSCSI RFC states that the first burst length must be smaller than the
max burst length. We currently assume targets will be good, but that may
not be the case, so this patch adds a check.

This patch also moves the unsol data out offset to the lib so the LLDs
do not have to track it.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/scsi/iscsi_tcp.c
drivers/scsi/iscsi_tcp.h
drivers/scsi/libiscsi.c
include/scsi/libiscsi.h