test/scsi_bdev_ut: zero-initialize bdev structures
The bdev product_name field is used in the Inquiry command translation and was previously uninitialized. Change-Id: Ie9d056ddaddfbb60ce5c3444ed87f852c00a296d Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
06e4124b24
commit
f5f1f24a1f
@ -383,7 +383,7 @@ inquiry_evpd_test(void)
|
||||
static void
|
||||
inquiry_standard_test(void)
|
||||
{
|
||||
struct spdk_bdev bdev;
|
||||
struct spdk_bdev bdev = {};
|
||||
struct spdk_scsi_task task;
|
||||
struct spdk_scsi_lun lun;
|
||||
struct spdk_scsi_dev dev;
|
||||
@ -420,7 +420,7 @@ inquiry_standard_test(void)
|
||||
static void
|
||||
_inquiry_overflow_test(uint8_t alloc_len)
|
||||
{
|
||||
struct spdk_bdev bdev;
|
||||
struct spdk_bdev bdev = {};
|
||||
struct spdk_scsi_task task;
|
||||
struct spdk_scsi_lun lun;
|
||||
struct spdk_scsi_dev dev;
|
||||
|
Loading…
Reference in New Issue
Block a user