numam-spdk/test/unit/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
..
iscsi.c scsi: removed dev->maxlun field 2017-07-12 13:16:55 -04:00
param.c test: move iSCSI unit tests to test/unit 2017-06-28 13:10:27 -04:00
tgt_node.c scsi: removed dev->maxlun field 2017-07-12 13:16:55 -04:00
common.c iscsi: fix AHS handling 2017-07-14 11:14:21 -04:00
Makefile test: move iSCSI unit tests to test/unit 2017-06-28 13:10:27 -04:00