hw/nvme fixes

* coverity fixes
 -----BEGIN PGP SIGNATURE-----
 
 iQEzBAABCAAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAmERCTYACgkQTeGvMW1P
 DekByggAqswnK64P7zjkq3aEjENKdD00lYfy0aInSn6HbV75D6f654izVWN/8NUn
 vBhcmuYDi87hXv/dfD9OvaIrpajiMuEmer0jUigIhJvXJseHx7R7tf3H6OSxbQtn
 NnhticUYtFQoHADoM129rtkh/r/KXbMMpVC+/EwuhLBGR8/GRG50yBs6ZgqUbydU
 rcO+1neFO1ee6bsV2TIDrQhs/vsDAQsOLkbe8g2LeNIxCOSKkTRnn4t2fq3Ue0up
 y8m3vEl3zq4GVpQW+MrSfSS1G5bdunoGtrrPlK9EkCRYT6HRX/YstLFSk2TWUdJ0
 rA/el4WN/XMvYOF6YSb+6d72ZK7uFw==
 =nrUW
 -----END PGP SIGNATURE-----

Merge remote-tracking branch 'remotes/nvme/tags/nvme-next-pull-request' into staging

hw/nvme fixes

* coverity fixes

# gpg: Signature made Mon 09 Aug 2021 11:53:42 BST
# gpg:                using RSA key 522833AA75E2DCE6A24766C04DE1AF316D4F0DE9
# gpg: Good signature from "Klaus Jensen <its@irrelevant.dk>" [unknown]
# gpg:                 aka "Klaus Jensen <k.jensen@samsung.com>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: DDCA 4D9C 9EF9 31CC 3468  4272 63D5 6FC5 E55D A838
#      Subkey fingerprint: 5228 33AA 75E2 DCE6 A247  66C0 4DE1 AF31 6D4F 0DE9

* remotes/nvme/tags/nvme-next-pull-request:
  hw/nvme: fix missing variable initializers

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Peter Maydell 2021-08-09 15:00:26 +01:00
commit 370ea52f72

View File

@ -4663,15 +4663,15 @@ static uint16_t nvme_identify_ns_descr_list(NvmeCtrl *n, NvmeRequest *req)
struct {
NvmeIdNsDescr hdr;
uint8_t v[NVME_NIDL_UUID];
} QEMU_PACKED uuid;
} QEMU_PACKED uuid = {};
struct {
NvmeIdNsDescr hdr;
uint64_t v;
} QEMU_PACKED eui64;
} QEMU_PACKED eui64 = {};
struct {
NvmeIdNsDescr hdr;
uint8_t v;
} QEMU_PACKED csi;
} QEMU_PACKED csi = {};
trace_pci_nvme_identify_ns_descr_list(nsid);