This fix is as same as for NVMe bdev module. If a ANA log page has two or more ANA group descriptors, the second or later of ANA group descriptors will not be 8-bytes aligned. Then runtime error would occur as follows: runtime error: member access within misaligned address 0x612000000074 for type 'const struct spdk_nvme_ana_group_descriptor', which requires 8 byte alignment nvmf_get_ana_log_page() in lib/nvmf/ctrlr.c creates a ANA log page data and processes 8 bytes alignment correctly because we got the same runtime error before. However, lib/nvme had been missed at that time. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Idaa610544dc5cb659c387fcd38a2b4b97cbd06e5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8398 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Monica Kenguva <monica.kenguva@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
nvme_ctrlr_ut.c |