Skip to content

Commit 254f81c

Browse files
committed
test/mi: initialize struct args
The fw download and fw commit test fail sometimes because struct args is not properly initiliazed. Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent c2f30b4 commit 254f81c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/mi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@ static int test_admin_fw_download_cb(struct nvme_mi_ep *ep,
15651565

15661566
static void test_admin_fw_download(struct nvme_mi_ep *ep)
15671567
{
1568-
struct nvme_fw_download_args args;
1568+
struct nvme_fw_download_args args = { 0 };
15691569
struct fw_download_info info;
15701570
unsigned char fw[4096];
15711571
nvme_mi_ctrl_t ctrl;
@@ -1655,7 +1655,7 @@ static int test_admin_fw_commit_cb(struct nvme_mi_ep *ep,
16551655

16561656
static void test_admin_fw_commit(struct nvme_mi_ep *ep)
16571657
{
1658-
struct nvme_fw_commit_args args;
1658+
struct nvme_fw_commit_args args = { 0 };
16591659
struct fw_commit_info info;
16601660
nvme_mi_ctrl_t ctrl;
16611661
int rc;

0 commit comments

Comments
 (0)