test/nvme: Fix buffer zeroing math
This meant to zero the entire active namespace list. Signed-off-by: Ben Walker <benjamin.walker@intel.com> Change-Id: I2da2293b53acd57d3480cf93b052eb1520de35d4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10028 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
be2d126fd6
commit
52e432dff2
@ -2127,7 +2127,7 @@ test_nvme_ctrlr_test_active_ns(void)
|
||||
nsid = spdk_nvme_ctrlr_get_next_active_ns(&ctrlr, nsid);
|
||||
CU_ASSERT(nsid == 0);
|
||||
|
||||
memset(ctrlr.active_ns_list, 0, ctrlr.num_ns);
|
||||
memset(ctrlr.active_ns_list, 0, sizeof(uint32_t) * ctrlr.num_ns);
|
||||
for (nsid = 0; nsid < ctrlr.num_ns; nsid++) {
|
||||
ctrlr.active_ns_list[nsid] = nsid + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user