diff --git a/lib/iscsi/iscsi.h b/lib/iscsi/iscsi.h index fe7af26f8..b75b6bd29 100644 --- a/lib/iscsi/iscsi.h +++ b/lib/iscsi/iscsi.h @@ -153,7 +153,6 @@ struct spdk_mobj { struct spdk_iscsi_pdu { struct iscsi_bhs bhs; - struct iscsi_ahs *ahs; struct spdk_mobj *mobj; uint8_t *data_buf; uint8_t *data; @@ -178,7 +177,7 @@ struct spdk_iscsi_pdu { * This should always be at the end of PDU data structure. * we need to not zero this out when doing memory clear. */ - uint8_t ahs_data[ISCSI_AHS_LEN]; + uint8_t ahs[ISCSI_AHS_LEN]; struct { uint16_t length; /* iSCSI SenseLength (big-endian) */ diff --git a/lib/iscsi/iscsi_subsystem.c b/lib/iscsi/iscsi_subsystem.c index 01872dadb..4e5a6a127 100644 --- a/lib/iscsi/iscsi_subsystem.c +++ b/lib/iscsi/iscsi_subsystem.c @@ -531,7 +531,7 @@ struct spdk_iscsi_pdu *spdk_get_pdu(void) } /* we do not want to zero out the last part of the structure reserved for AHS and sense data */ - memset(pdu, 0, offsetof(struct spdk_iscsi_pdu, ahs_data)); + memset(pdu, 0, offsetof(struct spdk_iscsi_pdu, ahs)); pdu->ref = 1; return pdu; diff --git a/test/unit/lib/iscsi/common.c b/test/unit/lib/iscsi/common.c index dfdb12325..b03bc8d3a 100644 --- a/test/unit/lib/iscsi/common.c +++ b/test/unit/lib/iscsi/common.c @@ -59,7 +59,7 @@ spdk_get_pdu(void) return NULL; } - memset(pdu, 0, offsetof(struct spdk_iscsi_pdu, ahs_data)); + memset(pdu, 0, offsetof(struct spdk_iscsi_pdu, ahs)); pdu->ref = 1; return pdu;