qemu-e2k/hw/nvme
Klaus Jensen 5f4884c441 hw/nvme: fix missing variable initializers
Coverity found that 'uuid', 'csi' and 'eui64' are uninitialized. While
we set most of the fields, we do not explicitly set the rsvd2 field in
the NvmeIdNsDescr header.

Fix this by explicitly zero-initializing the variables.

Reported-by: Coverity (CID 1458835, 1459295 and 1459580)
Fixes: 6870cfb814 ("hw/nvme: namespace parameter for EUI-64")
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2021-08-09 12:52:16 +02:00
..
ctrl.c hw/nvme: fix missing variable initializers 2021-08-09 12:52:16 +02:00
dif.c hw/nvme: use prinfo directly in nvme_check_prinfo and nvme_dif_check 2021-06-29 07:16:25 +02:00
Kconfig
meson.build
ns.c hw/nvme: fix controller hot unplugging 2021-07-26 21:09:38 +02:00
nvme.h hw/nvme: fix controller hot unplugging 2021-07-26 21:09:38 +02:00
subsys.c hw/nvme: fix controller hot unplugging 2021-07-26 21:09:38 +02:00
trace-events hw/nvme: error handling for too many mappings 2021-07-26 21:09:38 +02:00
trace.h