Spdk/lib/iscsi
Daniel Verkamp e283c385e7 iscsi: fix AHS handling
Previously, we had a pdu->ahs pointer that was always NULL (never set
anywhere), and we would try to read data into this NULL pointer if the
initiator ever sent a PDU with a non-zero TotalAHSLength.

Rename the existing ahs_data array in the PDU to just "ahs" to minimize
the necessary changes.  We never actually dereference the ahs structure,
so its type is not important. (We can cast it later if we add support
for anything that requires an AHS.)

Change-Id: I10d19a6e0d99f326794cbe6469eacedadc634c67
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/369315
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-07-14 11:14:21 -04:00
..
acceptor.c include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
acceptor.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
conn.c iscsi: remove pointless assert(task != NULL) 2017-06-27 14:01:59 -04:00
conn.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
crc32c.c include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
crc32c.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
init_grp.c include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
init_grp.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
iscsi_rpc.c scsi: removed dev->maxlun field 2017-07-12 13:16:55 -04:00
iscsi_subsystem.c iscsi: fix AHS handling 2017-07-14 11:14:21 -04:00
iscsi.c scsi: Remove cb_event. It is no longer necessary. 2017-06-22 10:47:31 -04:00
iscsi.h iscsi: fix AHS handling 2017-07-14 11:14:21 -04:00
Makefile env: Make the environment library configurable. 2016-10-05 11:51:37 -07:00
md5.c include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
md5.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
param.c iscsi, param: fix memory leak related issue 2017-06-05 13:34:40 -04:00
param.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
portal_grp.c include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
portal_grp.h iscsi: fixed crash on invalid add_portal_group call 2017-03-27 15:19:38 -07:00
task.c scsi: Remove cb_event. It is no longer necessary. 2017-06-22 10:47:31 -04:00
task.h scsi: Remove cb_event. It is no longer necessary. 2017-06-22 10:47:31 -04:00
tgt_node.c scsi: removed dev->maxlun field 2017-07-12 13:16:55 -04:00
tgt_node.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00